Skip to content

Commit 376f4e8

Browse files
gibson042dmethvin
authored andcommitted
Fix #11971 unit test in browsers lacking backgroundPositionX.
Closes jquerygh-850.
1 parent 3dbf9a8 commit 376f4e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/unit/effects.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,6 +1681,13 @@ asyncTest( "non-px animation handles non-numeric start (#11971)", 2, function()
16811681
var foo = jQuery("#foo"),
16821682
initial = foo.css("backgroundPositionX");
16831683

1684+
if ( initial == null ) {
1685+
expect(1);
1686+
ok( true, "Style property not understood" );
1687+
start();
1688+
return;
1689+
}
1690+
16841691
foo.animate({ backgroundPositionX: "42%" }, {
16851692
duration: 1,
16861693
progress: function( anim, percent ) {

0 commit comments

Comments
 (0)