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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints.html

Issue 2395193002: Add auxclick to the devtool event listeners (Closed)
Patch Set: Add the test and fix pointerevents Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints.html
index 68727f752c8da8d74210db6e6449f8de50af9e56..7e4bc6150abee87762dc9f25cca4c7bda6f9dff7 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints.html
@@ -16,6 +16,13 @@ function addListenerAndClick()
element.click();
}
+function addListenerAndAuxclick()
+{
+ var element = document.getElementById("test");
+ element.addEventListener("auxclick", testElementEventListener, true);
+ element.dispatchEvent(new MouseEvent("auxclick", {button: 1}));
+}
+
function addListenerAndPointerDown()
{
var element = document.getElementById("test");
@@ -87,6 +94,26 @@ function test()
}
},
+ function testAuxclickBreakpoint(next)
+ {
+ pane._setBreakpoint("listener:auxclick");
+ InspectorTest.waitUntilPaused(paused);
+ InspectorTest.evaluateInPageWithTimeout("addListenerAndAuxclick()");
+
+ function paused(callFrames, reason, breakpointIds, asyncStackTrace, auxData)
+ {
+ InspectorTest.captureStackTrace(callFrames);
+ printEventTargetName(auxData);
+ pane._removeBreakpoint("listener:auxclick");
+ InspectorTest.resumeExecution(resumed);
+ }
+
+ function resumed()
+ {
+ InspectorTest.evaluateInPage("addListenerAndAuxclick()", next);
+ }
+ },
+
function testTimerFiredBreakpoint(next)
{
pane._setBreakpoint("instrumentation:timerFired");
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698