aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/selector.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/selector.js')
-rw-r--r--test/unit/selector.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js
index 0177f4ba2..f9c6ffc7a 100644
--- a/test/unit/selector.js
+++ b/test/unit/selector.js
@@ -1,4 +1,4 @@
-QUnit.module( "selector", { teardown: moduleTeardown } );
+QUnit.module( "selector", { afterEach: moduleTeardown } );
/**
* This test page is for selector tests that require jQuery in order to do the selection
@@ -503,11 +503,13 @@ testIframe(
}
);
-QUnit.asyncTest( "Iframe dispatch should not affect jQuery (#13936)", 1, function( assert ) {
+QUnit.test( "Iframe dispatch should not affect jQuery (#13936)", function( assert ) {
+ assert.expect( 1 );
var loaded = false,
thrown = false,
iframe = document.getElementById( "iframe" ),
- iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
+ iframeDoc = iframe.contentDocument || iframe.contentWindow.document,
+ done = assert.async();
jQuery( iframe ).on( "load", function() {
var form;
@@ -525,7 +527,7 @@ QUnit.asyncTest( "Iframe dispatch should not affect jQuery (#13936)", 1, functio
// clean up
jQuery( iframe ).off();
- QUnit.start();
+ done();
} else {
loaded = true;
form.submit();