diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-06-11 21:17:07 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-06-11 21:24:19 -0400 |
commit | 934a2a703feff091e635cc9da5afb0f30d65d49e (patch) | |
tree | a769bbbc9159135c2ff807e7890e175e4caa0f54 /test/unit/effects.js | |
parent | 849303701a889a7efa4c7f239f80092ec17528e9 (diff) | |
download | jquery-934a2a703feff091e635cc9da5afb0f30d65d49e.tar.gz jquery-934a2a703feff091e635cc9da5afb0f30d65d49e.zip |
Check animation is close instead of exact, closes gh-823.
Diffstat (limited to 'test/unit/effects.js')
-rw-r--r-- | test/unit/effects.js | 3 |
1 files changed, 2 insertions, 1 deletions
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(); }); |