Fix #11971 unit test in browsers lacking backgroundPositionX.

Closes gh-850.
This commit is contained in:
Richard Gibson 2012-07-09 02:56:42 -04:00 committed by Dave Methvin
parent 3dbf9a8d5e
commit 376f4e8cf6

View 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 ) {