Check animation is close instead of exact, closes gh-823.

This commit is contained in:
Mike Sherov
2012-06-11 21:17:07 -04:00
committed by Dave Methvin
parent 849303701a
commit 934a2a703f

View File

@@ -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();
});