diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-06-25 13:05:01 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-06-25 13:05:01 -0400 |
commit | f612a41b18aa9aced54cfe7a42dd4aa7728027e1 (patch) | |
tree | 440680cfe492b274fce88850bc06b2ecc344590b /tests | |
parent | ab39099f665433ce88ed2310323b890e44eab6b9 (diff) | |
download | jquery-ui-f612a41b18aa9aced54cfe7a42dd4aa7728027e1.tar.gz jquery-ui-f612a41b18aa9aced54cfe7a42dd4aa7728027e1.zip |
Effects tests: Convert step callback to a no-op after first call in animateClass test.
Diffstat (limited to 'tests')
-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(); } }); }); |