Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/window-open-after-alt-enter.html

Issue 2100243002: Remove non-standardize key code names from event_sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix inspector tests that were missed by sed Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script> 2 <script>
3 function key(evt) 3 function key(evt)
4 { 4 {
5 window.open("about:blank"); 5 window.open("about:blank");
6 evt.preventDefault(); 6 evt.preventDefault();
7 } 7 }
8 8
9 function test() 9 function test()
10 { 10 {
11 if (window.testRunner) { 11 if (window.testRunner) {
12 testRunner.dumpAsText(); 12 testRunner.dumpAsText();
13 testRunner.dumpNavigationPolicy(); 13 testRunner.dumpNavigationPolicy();
14 var a = document.querySelector("#link"); 14 var a = document.querySelector("#link");
15 a.addEventListener('click', key); 15 a.addEventListener('click', key);
16 a.focus(); 16 a.focus();
17 eventSender.keyDown("\n", ["altKey"]); 17 eventSender.keyDown("Enter", ["altKey"]);
18 } 18 }
19 } 19 }
20 </script> 20 </script>
21 <body onload="test()"> 21 <body onload="test()">
22 <p>Tests that hitting alt-enter doesn't force a download if the navigation is tr iggered by script.</p> 22 <p>Tests that hitting alt-enter doesn't force a download if the navigation is tr iggered by script.</p>
23 <a href="about:blank" id="link">link</a> 23 <a href="about:blank" id="link">link</a>
24 </body> 24 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698