| Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-async-function.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-async-function.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-async-function.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a5bc7eda653409ec52986cbff28500ac9d786724
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-async-function.html
|
| @@ -0,0 +1,49 @@
|
| +<html>
|
| +<head>
|
| +<script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| +<script src="../../../http/tests/inspector/debugger-test.js"></script>
|
| +<script>
|
| +async function foo()
|
| +{
|
| + await Promise.resolve(1);
|
| + await Promise.resolve(2);
|
| + debugger;
|
| +}
|
| +
|
| +async function boo()
|
| +{
|
| + await Promise.resolve(3);
|
| + await foo();
|
| +}
|
| +
|
| +async function testFunction()
|
| +{
|
| + await Promise.resolve(4);
|
| + await boo();
|
| +}
|
| +//# sourceURL=test.js
|
| +</script>
|
| +<script>
|
| +var test = function()
|
| +{
|
| + InspectorTest.DebuggerAgent.setAsyncCallStackDepth(200);
|
| +
|
| + InspectorTest.startDebuggerTestPromise(/* quiet */ true)
|
| + .then(() => InspectorTest.runTestFunctionAndWaitUntilPausedPromise())
|
| + .then(() => dumpCallStackSidebarPane())
|
| + .then(() => InspectorTest.completeDebuggerTest());
|
| +
|
| + function dumpCallStackSidebarPane()
|
| + {
|
| + var callFrameList = self.runtime.sharedInstance(WebInspector.CallStackSidebarPane).callFrameList;
|
| + for (var item of callFrameList._items)
|
| + InspectorTest.addResult(item.element.textContent.replace(/VM\d+/g, "VM"));
|
| + }
|
| +}
|
| +
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| +<p>Tests that call stack sidebar contains correct labels for async await functions.</p>
|
| +</body>
|
| +</html>
|
|
|