Skip to content

Commit

Permalink
Effects tests: Convert step callback to a no-op after first call in a…
Browse files Browse the repository at this point in the history
…nimateClass test.
  • Loading branch information
scottgonzalez committed Jun 25, 2012
1 parent ab39099 commit f612a41
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/unit/effects/effects_core.js
Expand Up @@ -90,16 +90,16 @@ asyncTest( "animateClass works with colors", function() {
}); });


asyncTest( "animateClass calls step option", 1, function() { asyncTest( "animateClass calls step option", 1, function() {
var test = jQuery("div.animateClass"), var test = jQuery( "div.animateClass" ),
done = function() { step = function( fx ) {
done = jQuery.noop; ok( true, "Step Function Called" );
test.stop(); test.stop();
start(); start();
step = $.noop;
}; };
test.toggleClass( "testChangeBackground", { test.toggleClass( "testChangeBackground", {
step: function( fx ) { step: function() {
ok( true, "Step Function Called" ); step();
setTimeout( done, 0 );
} }
}); });
}); });
Expand Down

0 comments on commit f612a41

Please sign in to comment.