]> source.dussan.org Git - jquery.git/commitdiff
Fixing units
authorCorey Frang <gnarf@gnarf.net>
Thu, 8 Nov 2012 02:45:03 +0000 (20:45 -0600)
committerCorey Frang <gnarf@gnarf.net>
Thu, 8 Nov 2012 02:45:14 +0000 (20:45 -0600)
(cherry picked from commit 74490f862d9b926cd38eba8153ed3cda2a1a7716)

test/unit/effects.js

index 93fba1834603c939456cd09ed7d7d723da2733d8..aca24b8abdcc2d919108bdc534be39705b761052 100644 (file)
@@ -602,7 +602,7 @@ test("stop() - several in queue", function() {
 
        var $foo = jQuery("#foo");
        var w = 0;
-       $foo.hide().css( "width", 200 ).css("width");
+       $foo.hide( 1000 ).css( "width", 200 ).css("width");
 
        $foo.animate({ "width": "show" }, 1500);
        $foo.animate({ "width": "hide" }, 1000);
@@ -1882,7 +1882,7 @@ jQuery.map([ "toggle", "slideToggle", "fadeToggle" ], function ( method ) {
                var tested,
                        original,
                        check = method === "slideToggle" ? "height" : "opacity",
-                       element = jQuery( "#foo" );
+                       element = jQuery( "#foo" ).height( 200 );
 
                expect( 4 );
 
@@ -1892,7 +1892,7 @@ jQuery.map([ "toggle", "slideToggle", "fadeToggle" ], function ( method ) {
                                if ( fx.pos > 0.1 && fx.prop === check && !tested ) {
                                        tested = true;
                                        original = fx.start;
-                                       equal( fx.start !== 0, true, check + " is starting at " + original + " on first toggle" );
+                                       ok( fx.start !== 0, check + " is starting at " + original + " on first toggle (non-zero)" );
                                        equal( fx.end, 0, check + " is ending at 0 on first toggle" );
                                        element.stop();
                                }