]> source.dussan.org Git - jquery.git/commitdiff
Fix #11971 unit test in browsers lacking backgroundPositionX.
authorRichard Gibson <richard.gibson@gmail.com>
Mon, 9 Jul 2012 06:56:42 +0000 (02:56 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Tue, 10 Jul 2012 02:40:35 +0000 (22:40 -0400)
Closes gh-850.

test/unit/effects.js

index 402a7a58799239ec41a8d7630be4234b59e4abb7..35ba27275e3a1e884903b6168523208313cc5d4b 100644 (file)
@@ -1681,6 +1681,13 @@ asyncTest( "non-px animation handles non-numeric start (#11971)", 2, function()
        var foo = jQuery("#foo"),
                initial = foo.css("backgroundPositionX");
 
+       if ( initial == null ) {
+               expect(1);
+               ok( true, "Style property not understood" );
+               start();
+               return;
+       }
+
        foo.animate({ backgroundPositionX: "42%" }, {
                duration: 1,
                progress: function( anim, percent ) {