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

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

Issue 2609653002: [DevTools] Migrate CallStackSidebarPane to UI.ListControl. (Closed)
Patch Set: Created 3 years, 11 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
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698