aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ready.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/ready.js')
-rw-r--r--test/unit/ready.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/unit/ready.js b/test/unit/ready.js
index 775b6048a..d3396b1c4 100644
--- a/test/unit/ready.js
+++ b/test/unit/ready.js
@@ -4,6 +4,7 @@ QUnit.module( "ready" );
var notYetReady, noEarlyExecution,
whenified = jQuery.when( jQuery.ready ),
promisified = Promise.resolve( jQuery.ready ),
+ start = new Date(),
order = [],
args = {};
@@ -147,4 +148,16 @@ QUnit.module( "ready" );
done();
} );
} );
+
+ testIframe(
+ "holdReady test needs to be a standalone test since it deals with DOM ready",
+ "readywait.html",
+ function( assert, jQuery, window, document, releaseCalled ) {
+ assert.expect( 2 );
+ var now = new Date();
+ assert.ok( now - start >= 300, "Needs to have waited at least half a second" );
+ assert.ok( releaseCalled, "The release function was called, which resulted in ready" );
+ }
+ );
+
} )();