Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1a4f10d

Browse files
committed
Tests: Blacklist one focusin test in IE
The main part of the test was checking that focusin handling in an iframe worksand that's still checked. The test was also checking that it doesn't propagateto the parent document, though, and, apparently, in IE it does. This one testis now blacklisted in IE.
1 parent9e15d6b commit1a4f10d

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)

[8]ページ先頭

©2009-2025 Movatter.jp