| 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 | 6 |
| 7 function makeClosure(n, callback, withScope) | 7 function makeClosure(n, callback, withScope) |
| 8 { | 8 { |
| 9 var makeClosureLocalVar = 'local.' + n; | 9 var makeClosureLocalVar = 'local.' + n; |
| 10 return function innerFunction(x) { | 10 return function innerFunction(x) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2); | 65 DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2); |
| 66 } | 66 } |
| 67 | 67 |
| 68 function step2() | 68 function step2() |
| 69 { | 69 { |
| 70 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); | 70 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); |
| 71 } | 71 } |
| 72 | 72 |
| 73 function didPause() | 73 function didPause() |
| 74 { | 74 { |
| 75 var callStackPane = WebInspector.panels.sources.sidebarPanes.callstack; | 75 var callStackPane = WebInspector.inspectorView.panel("sources").sidebarP
anes.callstack; |
| 76 var scopeChainPane = WebInspector.panels.sources.sidebarPanes.scopechain
; | 76 var scopeChainPane = WebInspector.inspectorView.panel("sources").sidebar
Panes.scopechain; |
| 77 InspectorTest.addResult("Dumping call frames with scope chains:\n"); | 77 InspectorTest.addResult("Dumping call frames with scope chains:\n"); |
| 78 printNextCallFrame(); | 78 printNextCallFrame(); |
| 79 | 79 |
| 80 function printNextCallFrame() | 80 function printNextCallFrame() |
| 81 { | 81 { |
| 82 var index = callStackPane._selectedCallFrameIndex(); | 82 var index = callStackPane._selectedCallFrameIndex(); |
| 83 InspectorTest.assertGreaterOrEqual(index, 0); | 83 InspectorTest.assertGreaterOrEqual(index, 0); |
| 84 var placard = callStackPane.placards[index]; | 84 var placard = callStackPane.placards[index]; |
| 85 InspectorTest.addResult((index + 1) + ") " + placard.title + " " + p
lacard.subtitle); | 85 InspectorTest.addResult((index + 1) + ") " + placard.title + " " + p
lacard.subtitle); |
| 86 expandScopeChain(); | 86 expandScopeChain(); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 </script> | 123 </script> |
| 124 </head> | 124 </head> |
| 125 | 125 |
| 126 <body onload="runTest()"> | 126 <body onload="runTest()"> |
| 127 <input type='button' onclick='testFunction()' value='Test'/> | 127 <input type='button' onclick='testFunction()' value='Test'/> |
| 128 <p> | 128 <p> |
| 129 Test that sections representing scopes are expandable and contain correct data f
or async call frames. | 129 Test that sections representing scopes are expandable and contain correct data f
or async call frames. |
| 130 </p> | 130 </p> |
| 131 </body> | 131 </body> |
| 132 </html> | 132 </html> |
| OLD | NEW |