OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
5 <script> | 5 <script> |
6 async function foo() | 6 async function foo() |
7 { | 7 { |
8 await Promise.resolve(1); | 8 await Promise.resolve(1); |
9 await Promise.resolve(2); | 9 await Promise.resolve(2); |
10 debugger; | 10 debugger; |
(...skipping 17 matching lines...) Expand all Loading... |
28 { | 28 { |
29 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(200); | 29 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(200); |
30 | 30 |
31 InspectorTest.startDebuggerTestPromise(/* quiet */ true) | 31 InspectorTest.startDebuggerTestPromise(/* quiet */ true) |
32 .then(() => InspectorTest.runTestFunctionAndWaitUntilPausedPromise()) | 32 .then(() => InspectorTest.runTestFunctionAndWaitUntilPausedPromise()) |
33 .then(() => dumpCallStackSidebarPane()) | 33 .then(() => dumpCallStackSidebarPane()) |
34 .then(() => InspectorTest.completeDebuggerTest()); | 34 .then(() => InspectorTest.completeDebuggerTest()); |
35 | 35 |
36 function dumpCallStackSidebarPane() | 36 function dumpCallStackSidebarPane() |
37 { | 37 { |
38 var callFrameList = self.runtime.sharedInstance(Sources.CallStackSidebar
Pane).callFrameList; | 38 var pane = self.runtime.sharedInstance(Sources.CallStackSidebarPane); |
39 for (var item of callFrameList._items) | 39 for (var element of pane.contentElement.querySelectorAll('.call-frame-it
em')) |
40 InspectorTest.addResult(item.element.textContent.replace(/VM\d+/g, "
VM")); | 40 InspectorTest.addResult(element.deepTextContent().replace(/VM\d+/g,
"VM")); |
41 } | 41 } |
42 } | 42 } |
43 | 43 |
44 </script> | 44 </script> |
45 </head> | 45 </head> |
46 <body onload="runTest()"> | 46 <body onload="runTest()"> |
47 <p>Tests that call stack sidebar contains correct labels for async await functio
ns.</p> | 47 <p>Tests that call stack sidebar contains correct labels for async await functio
ns.</p> |
48 </body> | 48 </body> |
49 </html> | 49 </html> |
OLD | NEW |