From: Michał Gołębiowski Date: Thu, 13 Mar 2014 01:18:29 +0000 (+0100) Subject: Core: Add test for jQuery.ready.promise fallback load X-Git-Tag: 1.11.1-beta1~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=725cdebd3949ca98d4180897df5ddfd8ef58305b;p=jquery.git Core: Add test for jQuery.ready.promise fallback load Fix #13655 Close gh-1209 Ref 32b066d3805a48f8c8312562ed52a1b5910b1d85 --- diff --git a/test/data/core/dont_return.php b/test/data/core/dont_return.php new file mode 100644 index 000000000..3ac56e1ef --- /dev/null +++ b/test/data/core/dont_return.php @@ -0,0 +1,3 @@ + diff --git a/test/data/core/dynamic_ready.html b/test/data/core/dynamic_ready.html new file mode 100644 index 000000000..799145b98 --- /dev/null +++ b/test/data/core/dynamic_ready.html @@ -0,0 +1,35 @@ + + + + + + + + + + + + diff --git a/test/unit/core.js b/test/unit/core.js index c59acb84c..d95767586 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1486,6 +1486,11 @@ 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" ); +}); + testIframeWithCallback( "Tolerating alias-masked DOM properties (#14074)", "core/aliased.html", function( errors ) { expect( 1 );