Commit 376f4e8c authored by Richard Gibson's avatar Richard Gibson Committed by Dave Methvin

Fix #11971 unit test in browsers lacking backgroundPositionX.

Closes gh-850.
parent 3dbf9a8d
...@@ -1681,6 +1681,13 @@ asyncTest( "non-px animation handles non-numeric start (#11971)", 2, function() ...@@ -1681,6 +1681,13 @@ asyncTest( "non-px animation handles non-numeric start (#11971)", 2, function()
var foo = jQuery("#foo"), var foo = jQuery("#foo"),
initial = foo.css("backgroundPositionX"); initial = foo.css("backgroundPositionX");
if ( initial == null ) {
expect(1);
ok( true, "Style property not understood" );
start();
return;
}
foo.animate({ backgroundPositionX: "42%" }, { foo.animate({ backgroundPositionX: "42%" }, {
duration: 1, duration: 1,
progress: function( anim, percent ) { progress: function( anim, percent ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment