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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/debugger-reload-breakpoints-with-source-maps.html

Issue 1609973002: DevTools: promisify ContentProvider.requestContent and all its clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline Created 4 years, 11 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/inspector/sources/debugger-breakpoints/debugger-reload-breakpoints-with-source-maps.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/debugger-reload-breakpoints-with-source-maps.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/debugger-reload-breakpoints-with-source-maps.html
index f167b2ed4577777a228884fb8c24c0aa1acb1533..2c9941fbd3ffcbe3e85d2d7a0023e02fcb6b3869 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/debugger-reload-breakpoints-with-source-maps.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/debugger-reload-breakpoints-with-source-maps.html
@@ -26,12 +26,17 @@ var test = function()
function didSetBreakpointInDebugger()
{
counter--;
- if (!counter) {
- //Both breakpoints are resolved before reload
- InspectorTest.dumpBreakpointSidebarPane("Breakpoints before reload:");
- waitForBreakpoints();
- InspectorTest.reloadPage(onPageReloaded);
- }
+ if (counter)
+ return;
+ //Both breakpoints are resolved before reload
+ InspectorTest.addSniffer(WebInspector.JavaScriptBreakpointsSidebarPane.prototype, "didReceiveBreakpointLineForTest", onBreakpointsReady);
+ }
+
+ function onBreakpointsReady()
+ {
+ InspectorTest.dumpBreakpointSidebarPane("Breakpoints before reload:");
+ waitForBreakpoints();
+ InspectorTest.reloadPage(onPageReloaded);
}
function waitForBreakpoints()

Powered by Google App Engine
This is Rietveld 408576698