Skip to content
Permalink
Browse files

Tests: Clear the timers queue in an animateClass test

jQueries older than 1.11 or 2.1 were leaving a timer in the queue which could
then influence other tests.

Closes gh-1926
  • Loading branch information
mgol committed Jul 23, 2020
1 parent b61b16b commit 42bcdb90f62399f74c9ad7abd08dcd8067525668
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/unit/effects/core.js
@@ -146,19 +146,18 @@ QUnit.test( "animateClass works with colors", function( assert ) {

QUnit.test( "animateClass calls step option", function( assert ) {
assert.expect( 1 );
var ready = assert.async();
var test = jQuery( "div.animateClass" ),
step = function() {
assert.ok( true, "Step Function Called" );
test.stop();
ready();
step = $.noop;
};
test.toggleClass( "testChangeBackground", {
step: function() {
step();
}
} );

test.stop( true, true );
} );

QUnit.test( "animateClass works with children", function( assert ) {

0 comments on commit 42bcdb9

Please sign in to comment.
You can’t perform that action at this time.