OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../resources/testharness.js"></script> | 2 <script src="../resources/testharness.js"></script> |
3 <script src="../resources/testharnessreport.js"></script> | 3 <script src="../resources/testharnessreport.js"></script> |
4 | 4 |
5 <form> | 5 <form> |
6 <input id="input" type="text"> | 6 <input id="input" type="text"> |
7 <input id="input2"> | 7 <input id="input2"> |
8 </form> | 8 </form> |
9 | 9 |
10 <script> | 10 <script> |
(...skipping 18 matching lines...) Expand all Loading... |
29 // UI Events | 29 // UI Events |
30 'blur', 'focus', 'focusin', 'focusout', | 30 'blur', 'focus', 'focusin', 'focusout', |
31 'click', 'dblclick', | 31 'click', 'dblclick', |
32 'mousedown', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover',
'mouseup', | 32 'mousedown', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover',
'mouseup', |
33 'wheel', | 33 'wheel', |
34 'beforeinput', 'input', | 34 'beforeinput', 'input', |
35 'keydown', 'keyup', | 35 'keydown', 'keyup', |
36 'compositionstart', 'compositionupdate', 'compositionend', | 36 'compositionstart', 'compositionupdate', 'compositionend', |
37 // Legacy UI Events | 37 // Legacy UI Events |
38 'DOMActivate', 'DOMFocusIn', 'DOMFocusOut', 'keypress', | 38 'DOMActivate', 'DOMFocusIn', 'DOMFocusOut', 'keypress', |
| 39 // See LayoutTests/fast/events/touch/basic-single-touch-events.html for Touch
Events. |
39 ]; | 40 ]; |
40 | 41 |
41 for (const eventType of composedEventTypes) { | 42 for (const eventType of composedEventTypes) { |
42 async_test((test) => { | 43 async_test((test) => { |
43 input.addEventListener(eventType, test.step_func_done((e) => { | 44 input.addEventListener(eventType, test.step_func_done((e) => { |
44 assert_true(e.composed); | 45 assert_true(e.composed); |
45 })); | 46 })); |
46 }, `A ${eventType} event should be a composed event`); | 47 }, `A ${eventType} event should be a composed event`); |
47 } | 48 } |
48 | 49 |
(...skipping 14 matching lines...) Expand all Loading... |
63 | 64 |
64 // For wheel | 65 // For wheel |
65 window.eventSender.mouseMoveTo(input.offsetLeft + 5, input.offsetTop + 5); | 66 window.eventSender.mouseMoveTo(input.offsetLeft + 5, input.offsetTop + 5); |
66 window.eventSender.mouseScrollBy(-1, -2); | 67 window.eventSender.mouseScrollBy(-1, -2); |
67 | 68 |
68 // For composition | 69 // For composition |
69 input.focus(); | 70 input.focus(); |
70 window.textInputController.setMarkedText('1', 0, 1); | 71 window.textInputController.setMarkedText('1', 0, 1); |
71 window.textInputController.insertText('1'); | 72 window.textInputController.insertText('1'); |
72 </script> | 73 </script> |
OLD | NEW |