diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2014-03-17 18:13:00 +0100 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2014-03-17 18:13:00 +0100 |
commit | 551578eb3676f67cccd8a91a582c2225bc970cac (patch) | |
tree | 6288cac9683f41bf4df97242aecd62df0a622db9 | |
parent | 472f70a9df75c289393d6618c36257a04f9cb902 (diff) | |
download | jquery-551578eb3676f67cccd8a91a582c2225bc970cac.tar.gz jquery-551578eb3676f67cccd8a91a582c2225bc970cac.zip |
Core: Blacklist the ready test on async-loaded jQuery in iOS7
Fixes #14882
-rw-r--r-- | test/unit/core.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/test/unit/core.js b/test/unit/core.js index d1b221ce8..681fef5dc 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1505,10 +1505,15 @@ testIframeWithCallback( "Conditional compilation compatibility (#13274)", "core/ ok( $(), "jQuery executes" ); }); -testIframeWithCallback( "document ready when jQuery loaded asynchronously (#13655)", "core/dynamic_ready.html", function( ready ) { - expect( 1 ); - equal( true, ready, "document ready correctly fired when jQuery is loaded after DOMContentLoaded" ); -}); +// iOS7 doesn't fire the load event if the long-loading iframe gets its source reset to about:blank. +// This makes this test fail but it doesn't seem to cause any real-life problems so blacklisting +// this test there is preferred to complicating the hard-to-test core/ready code further. +if ( !/iphone os 7_/i.test( navigator.userAgent ) ) { + testIframeWithCallback( "document ready when jQuery loaded asynchronously (#13655)", "core/dynamic_ready.html", function( ready ) { + expect( 1 ); + equal( true, ready, "document ready correctly fired when jQuery is loaded after DOMContentLoaded" ); + }); +} testIframeWithCallback( "Tolerating alias-masked DOM properties (#14074)", "core/aliased.html", function( errors ) { |