aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2020-07-23 15:49:27 +0200
committerGitHub <noreply@github.com>2020-07-23 15:49:27 +0200
commit42bcdb90f62399f74c9ad7abd08dcd8067525668 (patch)
treec3807362ff78f6ffd63353286aeb010b1cb63e00
parentb61b16b5a89ee27b30efdf7635d897af810af130 (diff)
downloadjquery-ui-42bcdb90f62399f74c9ad7abd08dcd8067525668.tar.gz
jquery-ui-42bcdb90f62399f74c9ad7abd08dcd8067525668.zip
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
-rw-r--r--tests/unit/effects/core.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unit/effects/core.js b/tests/unit/effects/core.js
index 7ae56aef5..b8da50d5d 100644
--- a/tests/unit/effects/core.js
+++ b/tests/unit/effects/core.js
@@ -146,12 +146,9 @@ 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", {
@@ -159,6 +156,8 @@ QUnit.test( "animateClass calls step option", function( assert ) {
step();
}
} );
+
+ test.stop( true, true );
} );
QUnit.test( "animateClass works with children", function( assert ) {