From a44cfa00665d21c3197e25c2d63741dc15f6ffb9 Mon Sep 17 00:00:00 2001 From: Corey Frang Date: Fri, 26 Jun 2015 20:20:48 -0400 Subject: [PATCH] Tests: Lower the checks rounding error The CSS value rounding error was causig failures on FF and IE. --- test/unit/tween.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/tween.js b/test/unit/tween.js index 8b40d974e..39894c575 100644 --- a/test/unit/tween.js +++ b/test/unit/tween.js @@ -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" ); -- 2.39.5