mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix #11971 unit test in browsers lacking backgroundPositionX.
Closes gh-850.
This commit is contained in:
parent
3dbf9a8d5e
commit
376f4e8cf6
7
test/unit/effects.js
vendored
7
test/unit/effects.js
vendored
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user