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 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2); | 47 DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2); |
48 } | 48 } |
49 | 49 |
50 function step2() | 50 function step2() |
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, { "dropFram
eworkCallFrames": false }); |
58 | 58 InspectorTest.addResult("\nPrinting visible call stack:"); |
59 InspectorTest.addResult("\nVisible call stack:"); | 59 InspectorTest.captureStackTrace(callFrames, asyncStackTrace, { "dropFram
eworkCallFrames": true }); |
60 | |
61 var callStackPane = WebInspector.panels.sources.sidebarPanes.callstack; | |
62 var placards = callStackPane.placards; | |
63 var lastPlacard = null; | |
64 for (var i = 0, index = 0; i < placards.length; ++i) { | |
65 var placard = placards[i]; | |
66 if (placard.isHidden()) | |
67 continue; | |
68 if (lastPlacard && placard._asyncPlacard !== lastPlacard._asyncPlaca
rd) | |
69 InspectorTest.addResult(" [" + placard._asyncPlacard.title +
"]"); | |
70 InspectorTest.addResult(" " + (++index) + ") " + placard.title +
" (" + placard.subtitle + ")"); | |
71 lastPlacard = placard; | |
72 } | |
73 | |
74 InspectorTest.completeDebuggerTest(); | 60 InspectorTest.completeDebuggerTest(); |
75 } | 61 } |
76 } | 62 } |
77 | 63 |
78 </script> | 64 </script> |
79 </head> | 65 </head> |
80 | 66 |
81 <body onload="runTest()"> | 67 <body onload="runTest()"> |
82 <input type='button' onclick='testFunction()' value='Test'/> | 68 <input type='button' onclick='testFunction()' value='Test'/> |
83 <p> | 69 <p> |
84 Tests the async call stacks and framework black-boxing features working together
. | 70 Tests the async call stacks and framework black-boxing features working together
. |
85 </p> | 71 </p> |
86 </body> | 72 </body> |
87 </html> | 73 </html> |
OLD | NEW |