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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/keydown-leftright-keys.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 PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 description("This tests keyboard events with KeyLocationCode argument."); 8 description("This tests keyboard events with KeyLocationCode argument.");
9 9
10 var lastKeyboardEvent; 10 var lastKeyboardEvent;
(...skipping 24 matching lines...) Expand all
35 shouldEvaluateTo("lastKeyboardEvent.location", expectedLocation); 35 shouldEvaluateTo("lastKeyboardEvent.location", expectedLocation);
36 } 36 }
37 37
38 var textarea = document.createElement("textarea"); 38 var textarea = document.createElement("textarea");
39 textarea.addEventListener("keydown", recordKeyEvent, false); 39 textarea.addEventListener("keydown", recordKeyEvent, false);
40 document.body.insertBefore(textarea, document.body.firstChild); 40 document.body.insertBefore(textarea, document.body.firstChild);
41 textarea.focus(); 41 textarea.focus();
42 42
43 if (window.eventSender) { 43 if (window.eventSender) {
44 // location=0 indicates that we send events as standard keys. 44 // location=0 indicates that we send events as standard keys.
45 testKeyEventWithLocation("leftShift", VK_SHIFT, "KeyboardEvent.DOM_KEY_LOCAT ION_LEFT"); 45 testKeyEventWithLocation("ShiftLeft", VK_SHIFT, "KeyboardEvent.DOM_KEY_LOCAT ION_LEFT");
46 testKeyEventWithLocation("leftControl", VK_CONTROL, "KeyboardEvent.DOM_KEY_L OCATION_LEFT"); 46 testKeyEventWithLocation("ControlLeft", VK_CONTROL, "KeyboardEvent.DOM_KEY_L OCATION_LEFT");
47 testKeyEventWithLocation("leftAlt", VK_MENU, "KeyboardEvent.DOM_KEY_LOCATION _LEFT"); 47 testKeyEventWithLocation("AltLeft", VK_MENU, "KeyboardEvent.DOM_KEY_LOCATION _LEFT");
48 48
49 testKeyEventWithLocation("rightShift", VK_SHIFT, "KeyboardEvent.DOM_KEY_LOCA TION_RIGHT"); 49 testKeyEventWithLocation("ShiftRight", VK_SHIFT, "KeyboardEvent.DOM_KEY_LOCA TION_RIGHT");
50 testKeyEventWithLocation("rightControl", VK_CONTROL, "KeyboardEvent.DOM_KEY_ LOCATION_RIGHT"); 50 testKeyEventWithLocation("ControlRight", VK_CONTROL, "KeyboardEvent.DOM_KEY_ LOCATION_RIGHT");
51 testKeyEventWithLocation("rightAlt", VK_MENU, "KeyboardEvent.DOM_KEY_LOCATIO N_RIGHT"); 51 testKeyEventWithLocation("AltRight", VK_MENU, "KeyboardEvent.DOM_KEY_LOCATIO N_RIGHT");
52 } else { 52 } else {
53 debug("This test requires DumpRenderTree."); 53 debug("This test requires DumpRenderTree.");
54 } 54 }
55 </script> 55 </script>
56 </body> 56 </body>
57 </html> 57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698