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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-formatter-breakpoints-3.html

Issue 2491983002: [DevTools] reworked JavaScriptBreakpointsSidebarPane.js (Closed)
Patch Set: labal :( Created 4 years, 1 month 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-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());
}
}
]);

Powered by Google App Engine
This is Rietveld 408576698