From 8c293e62bb39cdf347bd045a1e89a54549f972eb Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Wed, 28 Oct 2015 13:54:04 -0400 Subject: Core: use interactive to evaluate dom ready, barring IE6-10 Fixes gh-2100 Close gh-2821 --- test/data/event/interactiveReady.html | 23 +++++++++++++++++++++++ test/unit/event.js | 12 ++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 test/data/event/interactiveReady.html (limited to 'test') diff --git a/test/data/event/interactiveReady.html b/test/data/event/interactiveReady.html new file mode 100644 index 000000000..77b37104d --- /dev/null +++ b/test/data/event/interactiveReady.html @@ -0,0 +1,23 @@ + + + + +Test case for gh-2100 + + + + + + + + +
+ + diff --git a/test/unit/event.js b/test/unit/event.js index c8c0667d3..14fcba0b3 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -2589,6 +2589,18 @@ testIframeWithCallback( } ); +// need PHP here to make the incepted IFRAME hang +if ( hasPHP ) { + testIframeWithCallback( + "jQuery.ready uses interactive", + "event/interactiveReady.html", + function( isOk, assert ) { + assert.expect( 1 ); + assert.ok( isOk, "jQuery fires ready when the DOM can truly be interacted with" ); + } + ); +} + testIframeWithCallback( "Focusing iframe element", "event/focusElem.html", -- cgit v1.2.3