mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Effects tests: Convert step callback to a no-op after first call in animateClass test.
This commit is contained in:
parent
ab39099f66
commit
f612a41b18
@ -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();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user