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

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

Issue 2490883002: Make UA dblclick events composed events (Closed)
Patch Set: 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..5b090a6917bb06796d2c6c3ca43802e6b69be515 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);
+ }));
+}, 'dblclick');
kochi 2016/11/09 09:22:11 Could you make this a complete sentence?
hayato 2016/11/10 01:00:21 Done
+
+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