Permalink
Browse files

Tests: Lower the checks rounding error

The CSS value rounding error was causig failures on FF and IE.
  • Loading branch information...
gnarf committed Jun 27, 2015
1 parent b3b2d6c commit a44cfa00665d21c3197e25c2d63741dc15f6ffb9
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/unit/tween.js
View
@@ -198,7 +198,7 @@ test( "jQuery.Tween - Element", function() {
ok( easingSpy.calledWith( 0.1, 0.1 * testOptions.duration, 0, 1, testOptions.duration ),
"...using jQuery.easing.linear with back-compat arguments" );
equal( parseFloat( testElement.style.height ).toFixed( 5 ), eased.toFixed( 5 ), "Set value" );
equal( parseFloat( testElement.style.height ).toFixed( 2 ), eased.toFixed( 2 ), "Set value" );
tween.run( 1 );
equal( testElement.style.height, "0px", "Checking another value" );

0 comments on commit a44cfa0

Please sign in to comment.