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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/script-tests/mouse-click-events.js

Issue 2163893003: Start sending auxclick instead of click for non-primary buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another rebase Created 4 years, 4 months 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
Index: third_party/WebKit/LayoutTests/fast/events/script-tests/mouse-click-events.js
diff --git a/third_party/WebKit/LayoutTests/fast/events/script-tests/mouse-click-events.js b/third_party/WebKit/LayoutTests/fast/events/script-tests/mouse-click-events.js
index b91ad8acf1406d8075eba737c008a34436de8efe..32251a81e4d445d486a62bf8a2bbfea1ca175fad 100644
--- a/third_party/WebKit/LayoutTests/fast/events/script-tests/mouse-click-events.js
+++ b/third_party/WebKit/LayoutTests/fast/events/script-tests/mouse-click-events.js
@@ -19,6 +19,7 @@ function clearEventLog() {
eventLog = "";
}
+div.addEventListener("auxclick", appendEventLog, false);
div.addEventListener("click", appendEventLog, false);
div.addEventListener("dblclick", appendEventLog, false);
div.addEventListener("mousedown", appendEventLog, false);
@@ -49,6 +50,6 @@ function testEvents(description, button, expectedString) {
if (window.eventSender) {
testEvents("Left Mouse Button", 0, "mousedown(0) mouseup(0) click(0) mousedown(0) mouseup(0) click(0) dblclick(0) ");
- testEvents("Middle Mouse Button", 1, "mousedown(1) mouseup(1) click(1) mousedown(1) mouseup(1) click(1) dblclick(1) ");
- testEvents("Right Mouse Button", 2, "mousedown(2) mouseup(2) mousedown(2) mouseup(2) ");
+ testEvents("Middle Mouse Button", 1, "mousedown(1) mouseup(1) auxclick(1) mousedown(1) mouseup(1) auxclick(1) ");
+ testEvents("Right Mouse Button", 2, "mousedown(2) mouseup(2) auxclick(2) mousedown(2) mouseup(2) auxclick(2) ");
}

Powered by Google App Engine
This is Rietveld 408576698