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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/arrow-keys-on-body.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 <body 1 <body
2 onkeypress="log(eventInfo(event))" 2 onkeypress="log(eventInfo(event))"
3 onkeydown="log(eventInfo(event))" 3 onkeydown="log(eventInfo(event))"
4 onkeyup="log(eventInfo(event))"> 4 onkeyup="log(eventInfo(event))">
5 <p>Test that arrow keys do not dispatch keypress events even if there is no defa ult handler.</p> 5 <p>Test that arrow keys do not dispatch keypress events even if there is no defa ult handler.</p>
6 <p>To test manually, press arrow keys and verify that no keypress events are log ged.</p> 6 <p>To test manually, press arrow keys and verify that no keypress events are log ged.</p>
7 <div id="log"></div> 7 <div id="log"></div>
8 8
9 <script> 9 <script>
10 function log(msg) { 10 function log(msg) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 } 51 }
52 log("target - type - " + ["ctrlKey", "altKey", "shiftKey", "metaKey"] 52 log("target - type - " + ["ctrlKey", "altKey", "shiftKey", "metaKey"]
53 + ' - ' + "keyIdentifier" 53 + ' - ' + "keyIdentifier"
54 + ' - ' + "location" 54 + ' - ' + "location"
55 + ' - ' + "keyCode" 55 + ' - ' + "keyCode"
56 + ' - ' + "charCode"); 56 + ' - ' + "charCode");
57 57
58 if (window.testRunner) { 58 if (window.testRunner) {
59 testRunner.dumpAsText(); 59 testRunner.dumpAsText();
60 eventSender.keyDown("leftArrow", []); 60 eventSender.keyDown("ArrowLeft", []);
61 } 61 }
62 62
63 </script> 63 </script>
64 64
65 </body> 65 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698