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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-async-function.html

Issue 2384533002: [DevTools] Better label for async function call stacks (Closed)
Patch Set: rebased 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script>
6 async function foo()
7 {
8 await Promise.resolve(1);
9 await Promise.resolve(2);
10 debugger;
11 }
12
13 async function boo()
14 {
15 await Promise.resolve(3);
16 await foo();
17 }
18
19 async function testFunction()
20 {
21 await Promise.resolve(4);
22 await boo();
23 }
24 //# sourceURL=test.js
25 </script>
26 <script>
27 var test = function()
28 {
29 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(200);
30
31 InspectorTest.startDebuggerTestPromise(/* quiet */ true)
32 .then(() => InspectorTest.runTestFunctionAndWaitUntilPausedPromise())
33 .then(() => dumpCallStackSidebarPane())
34 .then(() => InspectorTest.completeDebuggerTest());
35
36 function dumpCallStackSidebarPane()
37 {
38 var callFrameList = self.runtime.sharedInstance(WebInspector.CallStackSi debarPane).callFrameList;
39 for (var item of callFrameList._items)
40 InspectorTest.addResult(item.element.textContent.replace(/VM\d+/g, " VM"));
41 }
42 }
43
44 </script>
45 </head>
46 <body onload="runTest()">
47 <p>Tests that call stack sidebar contains correct labels for async await functio ns.</p>
48 </body>
49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698