8000 Tests: Blacklist one focusin test in IE · jquery/jquery@1a4f10d · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a4f10d

Browse files
committed
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.
1 parent 9e15d6b commit 1a4f10d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/unit/event.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2561,7 +2561,14 @@ testIframe(
25612561

25622562
// Create a focusin handler on the parent; shouldn't affect the iframe's fate
25632563
jQuery( "body" ).on( "focusin.iframeTest", function() {
2564-
assert.ok( false, "fired a focusin event in the parent document" );
2564+
2565+
// Support: IE 9 - 11+
2566+
// IE does propagate the event to the parent document. In this test
2567+
// we mainly care about the inner element so we'll just skip this one
2568+
// assertion in IE.
2569+
if ( !document.documentMode ) {
2570+
assert.ok( false, "fired a focusin event in the parent document" );
2571+
}
25652572
} );
25662573

25672574
input.on( "focusin", function() {

0 commit comments

Comments
 (0)
0