mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 13:34:59 -05:00
Tests: Lower the checks rounding error
The CSS value rounding error was causig failures on FF and IE.
This commit is contained in:
@@ -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" );
|
||||
|
||||
Reference in New Issue
Block a user