| 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"));
|
|
|