mirror of
https://github.com/jquery/jquery.git
synced 2024-10-05 11:34:18 +00:00
Core: Blacklist the ready test on async-loaded jQuery in iOS7
(cherry-picked from 551578eb36
)
Fixes #14882
This commit is contained in:
parent
3be4f13dc5
commit
835d64e81a
@ -1486,10 +1486,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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user