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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/shadow-dom/event-composed-ua.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/event-composed-ua.html b/third_party/WebKit/LayoutTests/shadow-dom/event-composed-ua.html
index 6e9f3bae5b18d2d9b8085c9c20922eed6ad713e9..bedaed43f5db5202ad3b2d925119437c26cd58e2 100644
--- a/third_party/WebKit/LayoutTests/shadow-dom/event-composed-ua.html
+++ b/third_party/WebKit/LayoutTests/shadow-dom/event-composed-ua.html
@@ -69,6 +69,12 @@ function doubleClick(x, y) {
eventSender.mouseUp();
}
+function click(x, y) {
+ eventSender.mouseMoveTo(x, y);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+}
+
async_test((test) => {
input.addEventListener('dblclick', test.step_func_done((e) => {
assert_true(e.composed);
@@ -76,4 +82,12 @@ async_test((test) => {
}, 'A dblclick event should be a composed event');
doubleClick(input.offsetLeft, input.offsetTop);
+
+async_test((test) => {
+ input.addEventListener('DOMActivate', test.step_func_done((e) => {
+ assert_true(e.composed);
+ }));
+}, 'A DOMActivate event should be a composed event');
+
+click(input.offsetLeft, input.offsetTop);
</script>
« 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