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 | 5 |
6 <script> | 6 <script> |
7 function oneLineTestFunction() { return 0; } | 7 function oneLineTestFunction() { return 0; } |
8 </script> | 8 </script> |
9 | 9 |
10 <script> | 10 <script> |
(...skipping 21 matching lines...) Expand all Loading... |
32 currentSourceFrame = sourceFrame; | 32 currentSourceFrame = sourceFrame; |
33 InspectorTest.addResult("Script source was shown."); | 33 InspectorTest.addResult("Script source was shown."); |
34 InspectorTest.setBreakpoint(currentSourceFrame, 16, "", true); | 34 InspectorTest.setBreakpoint(currentSourceFrame, 16, "", true); |
35 InspectorTest.runTestFunctionAndWaitUntilPaused(didPaused); | 35 InspectorTest.runTestFunctionAndWaitUntilPaused(didPaused); |
36 } | 36 } |
37 | 37 |
38 function didPaused(callFrames) | 38 function didPaused(callFrames) |
39 { | 39 { |
40 InspectorTest.addResult("Script execution paused."); | 40 InspectorTest.addResult("Script execution paused."); |
41 InspectorTest.captureStackTrace(callFrames); | 41 InspectorTest.captureStackTrace(callFrames); |
| 42 dumpBreakpointSidebarPane() |
42 InspectorTest.addSniffer(currentSourceFrame, "removeBreakpoint",
breakpointRemoved); | 43 InspectorTest.addSniffer(currentSourceFrame, "removeBreakpoint",
breakpointRemoved); |
43 InspectorTest.removeBreakpoint(currentSourceFrame, 16); | 44 InspectorTest.removeBreakpoint(currentSourceFrame, 16); |
44 } | 45 } |
45 | 46 |
46 function breakpointRemoved() | 47 function breakpointRemoved() |
47 { | 48 { |
48 InspectorTest.resumeExecution(didResume); | 49 InspectorTest.resumeExecution(didResume); |
49 } | 50 } |
50 | 51 |
51 function didResume() | 52 function didResume() |
52 { | 53 { |
| 54 dumpBreakpointSidebarPane() |
53 InspectorTest.addResult("Script execution resumed."); | 55 InspectorTest.addResult("Script execution resumed."); |
54 next(); | 56 next(); |
55 } | 57 } |
56 }, | 58 }, |
57 | 59 |
58 function testSetBreakpointOnTheLastLine(next) | 60 function testSetBreakpointOnTheLastLine(next) |
59 { | 61 { |
60 InspectorTest.showScriptSource("set-breakpoint.html", didShowScriptS
ource); | 62 InspectorTest.showScriptSource("set-breakpoint.html", didShowScriptS
ource); |
61 | 63 |
62 function didShowScriptSource(sourceFrame) | 64 function didShowScriptSource(sourceFrame) |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 } | 109 } |
108 | 110 |
109 function didSetBreakpointAgain(error, breakpointId) | 111 function didSetBreakpointAgain(error, breakpointId) |
110 { | 112 { |
111 InspectorTest.assertTrue(!!error); | 113 InspectorTest.assertTrue(!!error); |
112 InspectorTest.assertTrue(!breakpointId); | 114 InspectorTest.assertTrue(!breakpointId); |
113 next(); | 115 next(); |
114 } | 116 } |
115 } | 117 } |
116 ]); | 118 ]); |
| 119 |
| 120 function dumpBreakpointSidebarPane() |
| 121 { |
| 122 var paneElement = WebInspector.panels.scripts.sidebarPanes.jsBreakpoints
.listElement |
| 123 InspectorTest.addResult(""); |
| 124 InspectorTest.addResult("Dump breakpoint sidebar pane:"); |
| 125 InspectorTest.addResult(InspectorTest.textContentWithLineBreaks(paneElem
ent)); |
| 126 } |
117 } | 127 } |
118 | 128 |
119 </script> | 129 </script> |
120 </head> | 130 </head> |
121 | 131 |
122 <body onload="runTest()"> | 132 <body onload="runTest()"> |
123 <p> | 133 <p> |
124 Tests setting breakpoints. | 134 Tests setting breakpoints. |
125 </p> | 135 </p> |
126 | 136 |
127 </body> | 137 </body> |
128 </html> | 138 </html> |
OLD | NEW |