| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |