mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 22:18:26 -05:00
Check animation is close instead of exact, closes gh-823.
This commit is contained in:
committed by
Dave Methvin
parent
849303701a
commit
934a2a703f
3
test/unit/effects.js
vendored
3
test/unit/effects.js
vendored
@@ -1649,7 +1649,8 @@ asyncTest( "animate does not change start value for non-px animation (#7109)", 1
|
||||
computed.push( parseFloat( child.css( "width" ) ) );
|
||||
}
|
||||
}).queue( function( next ) {
|
||||
equal( computed[0], actual, "Starting width was unchanged" );
|
||||
var ratio = computed[ 0 ] / actual;
|
||||
ok( ratio > .9 && ratio < 1.1 , "Starting width was close enough" );
|
||||
next();
|
||||
start();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user