From 934a2a703feff091e635cc9da5afb0f30d65d49e Mon Sep 17 00:00:00 2001 From: Mike Sherov <mike.sherov@gmail.com> Date: Mon, 11 Jun 2012 21:17:07 -0400 Subject: Check animation is close instead of exact, closes gh-823. --- test/unit/effects.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/unit/effects.js') diff --git a/test/unit/effects.js b/test/unit/effects.js index 729ba29bc..780c5f4cf 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -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(); }); -- cgit v1.2.3