Skip to content

Commit 1390d07

Browse files
committed
Tests: Lower the checks rounding error
The CSS value rounding error was causig failures on FF and IE.
1 parent 0ff8057 commit 1390d07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/tween.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ test( "jQuery.Tween - Element", function() {
198198

199199
ok( easingSpy.calledWith( 0.1, 0.1 * testOptions.duration, 0, 1, testOptions.duration ),
200200
"...using jQuery.easing.linear with back-compat arguments" );
201-
equal( parseFloat( testElement.style.height ).toFixed( 5 ), eased.toFixed( 5 ), "Set value" );
201+
equal( parseFloat( testElement.style.height ).toFixed( 2 ), eased.toFixed( 2 ), "Set value" );
202202

203203
tween.run( 1 );
204204
equal( testElement.style.height, "0px", "Checking another value" );

0 commit comments

Comments
 (0)