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

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

Issue 321113005: DevTools: Support XHR event listener breakpoints on frontend. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tweaked the test Created 6 years, 6 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 | LayoutTests/inspector/sources/debugger/event-listener-breakpoints-xhr.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/sources/debugger/event-listener-breakpoints.html
diff --git a/LayoutTests/inspector/sources/debugger/event-listener-breakpoints.html b/LayoutTests/inspector/sources/debugger/event-listener-breakpoints.html
index c3ade10a218a559b86b86764c832f38839241e96..74e3778bd1064ed5f7f30eb80b34cf824e793398 100644
--- a/LayoutTests/inspector/sources/debugger/event-listener-breakpoints.html
+++ b/LayoutTests/inspector/sources/debugger/event-listener-breakpoints.html
@@ -85,8 +85,8 @@ function test()
function testLoadBreakpointOnXHR(next)
{
- DOMDebuggerAgent.setEventListenerBreakpoint("load", "xmlHTTPrequest"); // test case-insensitive match
- DOMDebuggerAgent.setEventListenerBreakpoint("error", "XMLHttpRequest");
+ pane._setBreakpoint("listener:load", ["xmlHTTPrequest"]); // test case-insensitive match
+ pane._setBreakpoint("listener:error", ["XMLHttpRequest"]);
InspectorTest.waitUntilPaused(paused);
InspectorTest.evaluateInPageWithTimeout("addLoadListeners()");
@@ -94,8 +94,8 @@ function test()
{
InspectorTest.captureStackTrace(callFrames);
printEventTargetName(auxData);
- DOMDebuggerAgent.removeEventListenerBreakpoint("load", "XMLHttpRequest");
- DOMDebuggerAgent.removeEventListenerBreakpoint("error", "xmlHTTPrequest");
+ pane._removeBreakpoint("listener:load", ["XMLHttpRequest"]);
+ pane._removeBreakpoint("listener:error", ["xmlHTTPrequest"]);
InspectorTest.resumeExecution(resumed);
}
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/event-listener-breakpoints-xhr.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698