Skip to content
Permalink
Browse files
Check animation is close instead of exact, closes gh-823.
  • Loading branch information
mikesherov authored and dmethvin committed Jun 12, 2012
1 parent 8493037 commit 934a2a7
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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();
});

0 comments on commit 934a2a7

Please sign in to comment.