Skip to content

Commit

Permalink
Fixing units
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarf committed Nov 8, 2012
1 parent c45f609 commit 74490f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/effects.js
Expand Up @@ -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);
Expand Down Expand Up @@ -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 );

Expand All @@ -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();
}
Expand Down

0 comments on commit 74490f8

Please sign in to comment.