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 var globalVar = { b: 1 }; | 7 var globalVar = { b: 1 }; |
8 | 8 |
9 function slave(x) | 9 function slave(x) |
10 { | 10 { |
(...skipping 17 matching lines...) Expand all Loading... |
28 } | 28 } |
29 | 29 |
30 function step2(callFrames) | 30 function step2(callFrames) |
31 { | 31 { |
32 InspectorTest.evaluateInConsole("x + y + globalVar.b", step3.bind(null,
callFrames)); | 32 InspectorTest.evaluateInConsole("x + y + globalVar.b", step3.bind(null,
callFrames)); |
33 } | 33 } |
34 | 34 |
35 function step3(callFrames, result) | 35 function step3(callFrames, result) |
36 { | 36 { |
37 InspectorTest.addResult("Evaluated script on the top frame: " + result); | 37 InspectorTest.addResult("Evaluated script on the top frame: " + result); |
38 var pane = WebInspector.panels.scripts.sidebarPanes.callstack; | 38 var pane = WebInspector.panels.sources.sidebarPanes.callstack; |
39 pane._placardSelected(pane.placards[1]); | 39 pane._placardSelected(pane.placards[1]); |
40 InspectorTest.runAfterPendingDispatches(step4); | 40 InspectorTest.runAfterPendingDispatches(step4); |
41 } | 41 } |
42 | 42 |
43 function step4() | 43 function step4() |
44 { | 44 { |
45 InspectorTest.evaluateInConsole("localObject.a + globalVar.b", step5); | 45 InspectorTest.evaluateInConsole("localObject.a + globalVar.b", step5); |
46 } | 46 } |
47 | 47 |
48 function step5(result) | 48 function step5(result) |
49 { | 49 { |
50 InspectorTest.addResult("Evaluated script on the calling frame: " + resu
lt); | 50 InspectorTest.addResult("Evaluated script on the calling frame: " + resu
lt); |
51 InspectorTest.completeDebuggerTest(); | 51 InspectorTest.completeDebuggerTest(); |
52 } | 52 } |
53 } | 53 } |
54 | 54 |
55 </script> | 55 </script> |
56 </head> | 56 </head> |
57 | 57 |
58 <body onload="runTest()"> | 58 <body onload="runTest()"> |
59 <p> | 59 <p> |
60 Tests that evaluation in console works fine when script is paused. It also check
s that | 60 Tests that evaluation in console works fine when script is paused. It also check
s that |
61 stack and global variables are accessible from the console. | 61 stack and global variables are accessible from the console. |
62 </p> | 62 </p> |
63 | 63 |
64 </body> | 64 </body> |
65 </html> | 65 </html> |
OLD | NEW |