aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/effects.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-06-11 21:17:07 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-06-11 21:24:19 -0400
commit934a2a703feff091e635cc9da5afb0f30d65d49e (patch)
treea769bbbc9159135c2ff807e7890e175e4caa0f54 /test/unit/effects.js
parent849303701a889a7efa4c7f239f80092ec17528e9 (diff)
downloadjquery-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.js3
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();
});