]> source.dussan.org Git - jquery.git/commitdiff
Tests: Lower the checks rounding error 2340/head
authorCorey Frang <gnarf@gnarf.net>
Sat, 27 Jun 2015 00:20:48 +0000 (20:20 -0400)
committerCorey Frang <gnarf@gnarf.net>
Sat, 27 Jun 2015 00:21:32 +0000 (20:21 -0400)
The CSS value rounding error was causig failures on FF and IE.

test/unit/tween.js

index 8b40d974e458fe0a2ebef5bbf2bf93db33410a19..39894c57573467097d65ab0718105ef07de231c8 100644 (file)
@@ -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" );