From 1a4f10ddc37c34c6dc3a451ee451b5c6cf367399 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82=C4=99biowski-Owczarek?= Date: Mon, 6 Apr 2020 20:56:02 +0200 Subject: [PATCH] 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. --- test/unit/event.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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() { -- 2.39.5