Skip to content

Commit 74490f8

Browse files
committed
Fixing units
1 parent c45f609 commit 74490f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/effects.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ test("stop() - several in queue", function() {
608608

609609
var $foo = jQuery("#foo");
610610
var w = 0;
611-
$foo.hide().css( "width", 200 ).css("width");
611+
$foo.hide( 1000 ).css( "width", 200 ).css("width");
612612

613613
$foo.animate({ "width": "show" }, 1500);
614614
$foo.animate({ "width": "hide" }, 1000);
@@ -1889,7 +1889,7 @@ jQuery.map([ "toggle", "slideToggle", "fadeToggle" ], function ( method ) {
18891889
var tested,
18901890
original,
18911891
check = method === "slideToggle" ? "height" : "opacity",
1892-
element = jQuery( "#foo" );
1892+
element = jQuery( "#foo" ).height( 200 );
18931893

18941894
expect( 4 );
18951895

@@ -1899,7 +1899,7 @@ jQuery.map([ "toggle", "slideToggle", "fadeToggle" ], function ( method ) {
18991899
if ( fx.pos > 0.1 && fx.prop === check && !tested ) {
19001900
tested = true;
19011901
original = fx.start;
1902-
equal( fx.start !== 0, true, check + " is starting at " + original + " on first toggle" );
1902+
ok( fx.start !== 0, check + " is starting at " + original + " on first toggle (non-zero)" );
19031903
equal( fx.end, 0, check + " is ending at 0 on first toggle" );
19041904
element.stop();
19051905
}

0 commit comments

Comments
 (0)