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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 InspectorTest.setQuiet(true); | 60 InspectorTest.setQuiet(true); |
61 InspectorTest.startDebuggerTest(step1); | 61 InspectorTest.startDebuggerTest(step1); |
62 | 62 |
63 function step1() | 63 function step1() |
64 { | 64 { |
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(didPaused); | 70 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); |
71 } | 71 } |
72 | 72 |
73 function didPaused() | 73 function didPause() |
74 { | 74 { |
75 var callStackPane = WebInspector.inspectorView.currentPanel().sidebarPan
es.callstack; | 75 var callStackPane = WebInspector.inspectorView.currentPanel().sidebarPan
es.callstack; |
76 var scopeChainPane = WebInspector.inspectorView.currentPanel().sidebarPa
nes.scopechain; | 76 var scopeChainPane = WebInspector.inspectorView.currentPanel().sidebarPa
nes.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); |
(...skipping 39 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 |