bdd976da4092b9d54f44298dd22a885ddaf8b71e
[WebKit-https.git] / LayoutTests / http / tests / navigation / keyboard-events-during-provisional-subframe-navigation.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4     <iframe id="subframe"></iframe>
5     <a href="resources/keyboard-events-after-navigation.html" accesskey="z"></a>
6     <script src="resources/keyboard-events-test.js"></script>
7     <script>
8         if (window.testRunner) {
9             testRunner.dumpAsText();
10             testRunner.dumpChildFramesAsText();
11             testRunner.waitUntilDone();
12             internals.settings.setShouldSuppressKeyboardInputDuringProvisionalNavigation(true);
13         }
14
15         waitForProvisionalNavigation(function () {
16             console.log("Provisional navigation started.");
17             console.log("No trusted events should be logged and the input element should have the value \"\".");
18             runTest(document.getElementById("subframe").contentWindow);
19
20             console.log("Pressing \"z\" with access key modifiers should navigate to resources/keyboard-events-after-navigation.html.");
21             window.focus();
22             eventSender.keyDown("z", internals.accessKeyModifiers());
23         });
24     </script>
25 </body>
26 </html>