| 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()
|
|
|