From f612a41b18aa9aced54cfe7a42dd4aa7728027e1 Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 25 Jun 2012 13:05:01 -0400 Subject: Effects tests: Convert step callback to a no-op after first call in animateClass test. --- tests/unit/effects/effects_core.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/unit') 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(); } }); }); -- cgit v1.2.3