diff options
Diffstat (limited to 'tests/unit/effects')
-rw-r--r-- | tests/unit/effects/effects_core.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/unit/effects/effects_core.js b/tests/unit/effects/effects_core.js index 60706b87b..04bfc12da 100644 --- a/tests/unit/effects/effects_core.js +++ b/tests/unit/effects/effects_core.js @@ -90,16 +90,16 @@ asyncTest( "animateClass works with colors", function() { }); asyncTest( "animateClass calls step option", 1, function() { - var test = jQuery("div.animateClass"), - done = function() { - done = jQuery.noop; + var test = jQuery( "div.animateClass" ), + step = function( fx ) { + ok( true, "Step Function Called" ); test.stop(); start(); + step = $.noop; }; test.toggleClass( "testChangeBackground", { - step: function( fx ) { - ok( true, "Step Function Called" ); - setTimeout( done, 0 ); + step: function() { + step(); } }); }); |