Effects tests: Convert step callback to a no-op after first call in animateClass test.

This commit is contained in:
Scott González 2012-06-25 13:05:01 -04:00
parent ab39099f66
commit f612a41b18

View File

@ -91,15 +91,15 @@ asyncTest( "animateClass works with colors", function() {
asyncTest( "animateClass calls step option", 1, function() {
var test = jQuery( "div.animateClass" ),
done = function() {
done = jQuery.noop;
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();
}
});
});