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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/simulated-click-on-anchor-with-target-blank.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 test() 3 function test()
4 { 4 {
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.dumpNavigationPolicy(); 7 testRunner.dumpNavigationPolicy();
8 document.querySelector("#link").focus(); 8 document.querySelector("#link").focus();
9 eventSender.keyDown("\n", ["ctrlKey", "metaKey"]); 9 eventSender.keyDown("Enter", ["ctrlKey", "metaKey"]);
10 } 10 }
11 } 11 }
12 </script> 12 </script>
13 <body onload="test()"> 13 <body onload="test()">
14 <p>Tests that hitting ctrl-enter on a link with target=_blank still opens it in the background</p> 14 <p>Tests that hitting ctrl-enter on a link with target=_blank still opens it in the background</p>
15 <a href="blank" id="link">link</a> 15 <a href="blank" id="link">link</a>
16 </body> 16 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698