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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-url.html

Issue 2389333002: DevTools: update styles for debugger's CallStackSidebarPane (Closed)
Patch Set: reset result after reorder, address comments Created 4 years, 2 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-ui/async-call-stack-url.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-url.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-url.html
index 5f3f7539c02b9436920f922f627eed29cc6e449a..b06073b2f5961741c2f76c4958264c3dc6835766 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-url.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-url.html
@@ -2,34 +2,48 @@
<head>
<script src="../../../http/tests/inspector/inspector-test.js"></script>
<script src="../../../http/tests/inspector/debugger-test.js"></script>
+<script src="../debugger/resources/unformatted-async.js"></script>
<script>
function testFunction()
{
- setTimeout(functionFoo, 0);
-}
-
-function functionFoo()
-{
- debugger;
+ setTimeout(f2, 0);
}
var test = function()
{
+ var scriptFormatter;
InspectorTest.DebuggerAgent.setAsyncCallStackDepth(200, step1);
function step1()
{
- InspectorTest.startDebuggerTest(step2);
+ InspectorTest.scriptFormatter().then(step2);
}
- function step2()
+ function step2(sf)
{
- InspectorTest.runTestFunctionAndWaitUntilPaused(step3);
+ scriptFormatter = sf;
+ InspectorTest.startDebuggerTest(step3);
}
function step3()
{
+ InspectorTest.showScriptSource("unformatted-async.js", step4);
+ }
+
+ function step4()
+ {
+ InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorAction.prototype, "_updateButton", step5);
+ scriptFormatter._toggleFormatScriptSource();
+ }
+
+ function step5()
+ {
+ InspectorTest.runTestFunctionAndWaitUntilPaused(step6);
+ }
+
+ function step6()
+ {
var callFrameList = self.runtime.sharedInstance(WebInspector.CallStackSidebarPane).callFrameList;
for (var item of callFrameList._items)
InspectorTest.addResult(item.element.textContent.replace(/VM\d+/g, "VM"));

Powered by Google App Engine
This is Rietveld 408576698