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

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

Issue 2490883002: Make UA dblclick events composed events (Closed)
Patch Set: update 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/events/Event.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 b8f4fc7edbf8b8fcd22eb2d479532a82004a38a1..6e9f3bae5b18d2d9b8085c9c20922eed6ad713e9 100644
--- a/third_party/WebKit/LayoutTests/shadow-dom/event-composed-ua.html
+++ b/third_party/WebKit/LayoutTests/shadow-dom/event-composed-ua.html
@@ -60,4 +60,20 @@ async_test(function(t) {
target.select();
var userError = new Event('error');
target.dispatchEvent(userError);
+
+function doubleClick(x, y) {
+ eventSender.mouseMoveTo(x, y);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+}
+
+async_test((test) => {
+ input.addEventListener('dblclick', test.step_func_done((e) => {
+ assert_true(e.composed);
+ }));
+}, 'A dblclick event should be a composed event');
+
+doubleClick(input.offsetLeft, input.offsetTop);
</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/events/Event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698