Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Tests: move readywait to an iframe test
Close jquerygh-3331 Fixes jquerygh-3573
- Loading branch information
Showing
with
49 additions
and 44 deletions.
- +7 −7 src/deprecated.js
- +17 −11 test/{ → data}/readywait.html
- +0 −1 test/data/readywaitasset.js
- +0 −25 test/data/readywaitloader.js
- +13 −0 test/unit/ready.js
- +12 −0 test/unit/readywait.js
| @@ -0,0 +1,12 @@ | ||
| var start = new Date(); | ||
|
|
||
| testIframe( | ||
| "holdReady test needs to be a standalone test since it deals with DOM ready", | ||
| "readywait.html", | ||
| function( assert, jQuery, window, document, delayedMessage ) { | ||
| assert.expect( 2 ); | ||
| var now = new Date(); | ||
| assert.ok( now - start >= 2000, "Must have waited 2 seconds" ); | ||
| assert.equal( delayedMessage, "It worked!" ); | ||
| } | ||
| ); |