| Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-formatter-breakpoints-3.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-formatter-breakpoints-3.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-formatter-breakpoints-3.html
|
| index c501f6fb57de76a78bfe5c7f5172bfee5e6282cb..078397864a7df11625b1e3223797278fb2f82766 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-formatter-breakpoints-3.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-formatter-breakpoints-3.html
|
| @@ -33,17 +33,23 @@ var test = function()
|
| {
|
| var formattedSourceFrame = panel.visibleView;
|
| InspectorTest.setBreakpoint(formattedSourceFrame, 3, "", true);
|
| + InspectorTest.waitBreakpointSidebarPane().then(evaluateF2);
|
| + }
|
| +
|
| + function evaluateF2() {
|
| InspectorTest.waitUntilPaused(pausedInF2);
|
| InspectorTest.evaluateInPageWithTimeout("f2()");
|
| }
|
|
|
| +
|
| function pausedInF2(callFrames)
|
| {
|
| InspectorTest.dumpBreakpointSidebarPane("while paused in pretty printed");
|
| - scriptFormatter._discardFormattedUISourceCodeScript(panel.visibleView.uiSourceCode());
|
| - InspectorTest.dumpBreakpointSidebarPane("while paused in raw");
|
| + InspectorTest.waitBreakpointSidebarPane()
|
| + .then(() => InspectorTest.dumpBreakpointSidebarPane("while paused in raw"))
|
| + .then(() => InspectorTest.resumeExecution(next));
|
| // No need to remove breakpoint since formattedUISourceCode was removed.
|
| - InspectorTest.resumeExecution(next);
|
| + scriptFormatter._discardFormattedUISourceCodeScript(panel.visibleView.uiSourceCode());
|
| }
|
| }
|
| ]);
|
|
|