5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 testRunner
.dumpNavigationPolicy();
8 document
.querySelector("#link").focus();
9 // Ctrl+Enter might get translated to a click event, which gets in turn
10 // would lead to a default navigation policy of new-foreground-tab. We
11 // test here that Ctrl+something else doesn't override the navigation
12 // policy for window.open().
13 eventSender
.keyDown("n", ["ctrlKey"]);
19 window
.open("about:blank", "", "status=0");
22 <body onload=
"test()">
23 <p>Tests that hitting any key but enter doesn't override the regular window policy.
</p>
24 <button onkeypress=
"key()" id=
"link">link
</button>