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