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

Side by Side Diff: third_party/WebKit/LayoutTests/shadow-dom/event-composed-ua.html

Issue 2501293002: Update a test to verify that Touch Events are composed events (Closed)
Patch Set: add a expected txt 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/touch/basic-single-touch-events-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/touch/basic-single-touch-events-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698