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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/inputevents/inputevent-keyboard.html

Issue 2469483002: [InputEvent] Add prefixes 'history*' and 'format*' to |inputType| (Closed)
Patch Set: CL format Created 4 years, 1 month 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 <html> 2 <html>
3 <head> 3 <head>
4 <title>InputEvent: beforeinput inputType</title> 4 <title>InputEvent: beforeinput inputType</title>
5 <script src="../../../resources/testharness.js"></script> 5 <script src="../../../resources/testharness.js"></script>
6 <script src="../../../resources/testharnessreport.js"></script> 6 <script src="../../../resources/testharnessreport.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <input type="text" id="input"> 9 <input type="text" id="input">
10 <textarea id="textarea"></textarea> 10 <textarea id="textarea"></textarea>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 testKeyDownInputType('Delete', [DELETE_WORD_MODIFIER], 'deleteWordForward'); 69 testKeyDownInputType('Delete', [DELETE_WORD_MODIFIER], 'deleteWordForward');
70 // Select and Delete (act as Kill on Mac) 70 // Select and Delete (act as Kill on Mac)
71 editable.innerHTML = 'abc def'; 71 editable.innerHTML = 'abc def';
72 selection.collapse(editable, 0); 72 selection.collapse(editable, 0);
73 selection.extend(editable, 1); 73 selection.extend(editable, 1);
74 testKeyDownInputType('Backspace', [DELETE_WORD_MODIFIER], 'deleteWordBackwar d'); 74 testKeyDownInputType('Backspace', [DELETE_WORD_MODIFIER], 'deleteWordBackwar d');
75 75
76 // Keyboard commands 76 // Keyboard commands
77 if (!isMacOS) { 77 if (!isMacOS) {
78 // MacOS's eventSender does not work on hot keys other than arrows. 78 // MacOS's eventSender does not work on hot keys other than arrows.
79 testKeyDownInputType('z', ['ctrlKey'], 'undo'); 79 testKeyDownInputType('z', ['ctrlKey'], 'historyUndo');
80 testKeyDownInputType('z', ['ctrlKey', 'shiftKey'], 'redo'); 80 testKeyDownInputType('z', ['ctrlKey', 'shiftKey'], 'historyRedo');
81 } 81 }
82 // Move command should not generate input events. 82 // Move command should not generate input events.
83 testKeyDownInputType('ArrowLeft', [], NO_INPUT_EVENT_FIRED); 83 testKeyDownInputType('ArrowLeft', [], NO_INPUT_EVENT_FIRED);
84 testKeyDownInputType('ArrowLeft', ['shiftKey'], NO_INPUT_EVENT_FIRED); 84 testKeyDownInputType('ArrowLeft', ['shiftKey'], NO_INPUT_EVENT_FIRED);
85 testKeyDownInputType('Home', [], NO_INPUT_EVENT_FIRED); 85 testKeyDownInputType('Home', [], NO_INPUT_EVENT_FIRED);
86 }, 'Testing beforeinput inputType'); 86 }, 'Testing beforeinput inputType');
87 </script> 87 </script>
88 </body> 88 </body>
89 </html> 89 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698