Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / window-open-after-keypress.html
blobfca283e004c7d9f16b5bf3a9065a1829981ed581
1 <!DOCTYPE html>
2 <script>
3 function test()
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"]);
17 function key()
19 window.open("about:blank", "", "status=0");
21 </script>
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>
25 </body>