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

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

Issue 2491233002: Make UA DOMActivate events composed events (Closed)
Patch Set: wip 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 | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | 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 <script src="resources/shadow-dom.js"></script> 4 <script src="resources/shadow-dom.js"></script>
5 5
6 <input id="input"></input> 6 <input id="input"></input>
7 <div id="sandbox"> 7 <div id="sandbox">
8 <div id = "host"> 8 <div id = "host">
9 <template> 9 <template>
10 <input id="target" value="test"></div> 10 <input id="target" value="test"></div>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 target.dispatchEvent(userError); 62 target.dispatchEvent(userError);
63 63
64 function doubleClick(x, y) { 64 function doubleClick(x, y) {
65 eventSender.mouseMoveTo(x, y); 65 eventSender.mouseMoveTo(x, y);
66 eventSender.mouseDown(); 66 eventSender.mouseDown();
67 eventSender.mouseUp(); 67 eventSender.mouseUp();
68 eventSender.mouseDown(); 68 eventSender.mouseDown();
69 eventSender.mouseUp(); 69 eventSender.mouseUp();
70 } 70 }
71 71
72 function click(x, y) {
73 eventSender.mouseMoveTo(x, y);
74 eventSender.mouseDown();
75 eventSender.mouseUp();
76 }
77
72 async_test((test) => { 78 async_test((test) => {
73 input.addEventListener('dblclick', test.step_func_done((e) => { 79 input.addEventListener('dblclick', test.step_func_done((e) => {
74 assert_true(e.composed); 80 assert_true(e.composed);
75 })); 81 }));
76 }, 'A dblclick event should be a composed event'); 82 }, 'A dblclick event should be a composed event');
77 83
78 doubleClick(input.offsetLeft, input.offsetTop); 84 doubleClick(input.offsetLeft, input.offsetTop);
85
86 async_test((test) => {
87 input.addEventListener('DOMActivate', test.step_func_done((e) => {
88 assert_true(e.composed);
89 }));
90 }, 'A DOMActivate event should be a composed event');
91
92 click(input.offsetLeft, input.offsetTop);
79 </script> 93 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698