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

Side by Side Diff: LayoutTests/inspector/sources/debugger/async-callstack-and-framework-black-box.html

Issue 268293003: DevTools: Get rid of WebInspector.panels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 src="resources/framework.js"></script> 5 <script src="resources/framework.js"></script>
6 <script> 6 <script>
7 7
8 window.callbackFromFramework = function(next) 8 window.callbackFromFramework = function(next)
9 { 9 {
10 return next(); 10 return next();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 { 51 {
52 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); 52 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
53 } 53 }
54 54
55 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) 55 function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
56 { 56 {
57 InspectorTest.captureStackTrace(callFrames, asyncStackTrace); 57 InspectorTest.captureStackTrace(callFrames, asyncStackTrace);
58 58
59 InspectorTest.addResult("\nVisible call stack:"); 59 InspectorTest.addResult("\nVisible call stack:");
60 60
61 var callStackPane = WebInspector.panels.sources.sidebarPanes.callstack; 61 var callStackPane = WebInspector.inspectorView.panel("sources").sidebarP anes.callstack;
62 var placards = callStackPane.placards; 62 var placards = callStackPane.placards;
63 var lastPlacard = null; 63 var lastPlacard = null;
64 for (var i = 0, index = 0; i < placards.length; ++i) { 64 for (var i = 0, index = 0; i < placards.length; ++i) {
65 var placard = placards[i]; 65 var placard = placards[i];
66 if (placard.isHidden()) 66 if (placard.isHidden())
67 continue; 67 continue;
68 if (lastPlacard && placard._asyncPlacard !== lastPlacard._asyncPlaca rd) 68 if (lastPlacard && placard._asyncPlacard !== lastPlacard._asyncPlaca rd)
69 InspectorTest.addResult(" [" + placard._asyncPlacard.title + "]"); 69 InspectorTest.addResult(" [" + placard._asyncPlacard.title + "]");
70 InspectorTest.addResult(" " + (++index) + ") " + placard.title + " (" + placard.subtitle + ")"); 70 InspectorTest.addResult(" " + (++index) + ") " + placard.title + " (" + placard.subtitle + ")");
71 lastPlacard = placard; 71 lastPlacard = placard;
72 } 72 }
73 73
74 InspectorTest.completeDebuggerTest(); 74 InspectorTest.completeDebuggerTest();
75 } 75 }
76 } 76 }
77 77
78 </script> 78 </script>
79 </head> 79 </head>
80 80
81 <body onload="runTest()"> 81 <body onload="runTest()">
82 <input type='button' onclick='testFunction()' value='Test'/> 82 <input type='button' onclick='testFunction()' value='Test'/>
83 <p> 83 <p>
84 Tests the async call stacks and framework black-boxing features working together . 84 Tests the async call stacks and framework black-boxing features working together .
85 </p> 85 </p>
86 </body> 86 </body>
87 </html> 87 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698