diff options
Diffstat (limited to 'test/unit/ready.js')
-rw-r--r-- | test/unit/ready.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/ready.js b/test/unit/ready.js index d1a728b47..a476528de 100644 --- a/test/unit/ready.js +++ b/test/unit/ready.js @@ -105,7 +105,7 @@ QUnit.module( "ready" ); } ); } ); - QUnit[ jQuery.when ? "test" : "skip" ]( "jQuery.when(jQuery.ready)", function( assert ) { + QUnit[ includesModule( "deferred" ) ? "test" : "skip" ]( "jQuery.when(jQuery.ready)", function( assert ) { assert.expect( 2 ); var done = assert.async( 2 ); @@ -150,7 +150,7 @@ QUnit.module( "ready" ); } ); // jQuery.holdReady is deprecated, skip the test if it was excluded. - if ( jQuery.holdReady ) { + if ( includesModule( "deprecated" ) ) { testIframe( "holdReady test needs to be a standalone test since it deals with DOM ready", "readywait.html", |