aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2020-04-06 20:56:02 +0200
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2020-04-06 20:56:02 +0200
commit1a4f10ddc37c34c6dc3a451ee451b5c6cf367399 (patch)
treeb19057f8734196ea6171f9cc7347cd9446ee612f /test/unit
parent9e15d6b469556eccfa607c5ecf53b20c84529125 (diff)
downloadjquery-1a4f10ddc37c34c6dc3a451ee451b5c6cf367399.tar.gz
jquery-1a4f10ddc37c34c6dc3a451ee451b5c6cf367399.zip
Tests: Blacklist one focusin test in IE
The main part of the test was checking that focusin handling in an iframe works and that's still checked. The test was also checking that it doesn't propagate to the parent document, though, and, apparently, in IE it does. This one test is now blacklisted in IE.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/event.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index d0d451e11..f0089b5c6 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -2561,7 +2561,14 @@ testIframe(
// Create a focusin handler on the parent; shouldn't affect the iframe's fate
jQuery( "body" ).on( "focusin.iframeTest", function() {
- assert.ok( false, "fired a focusin event in the parent document" );
+
+ // Support: IE 9 - 11+
+ // IE does propagate the event to the parent document. In this test
+ // we mainly care about the inner element so we'll just skip this one
+ // assertion in IE.
+ if ( !document.documentMode ) {
+ assert.ok( false, "fired a focusin event in the parent document" );
+ }
} );
input.on( "focusin", function() {