From 74490f862d9b926cd38eba8153ed3cda2a1a7716 Mon Sep 17 00:00:00 2001 From: Corey Frang Date: Wed, 7 Nov 2012 20:45:03 -0600 Subject: [PATCH] Fixing units --- test/unit/effects.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/effects.js b/test/unit/effects.js index 824afb41b..9a819a291 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -608,7 +608,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); @@ -1889,7 +1889,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 ); @@ -1899,7 +1899,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(); } -- 2.39.5