| 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 22 matching lines...) Expand all Loading... |
| 33 InspectorTest.addResult("Script source was shown."); | 33 InspectorTest.addResult("Script source was shown."); |
| 34 setBreakpointAndWaitUntilPaused(currentSourceFrame, 16, didPause
); | 34 setBreakpointAndWaitUntilPaused(currentSourceFrame, 16, didPause
); |
| 35 InspectorTest.runTestFunction(); | 35 InspectorTest.runTestFunction(); |
| 36 } | 36 } |
| 37 | 37 |
| 38 function didPause(callFrames) | 38 function didPause(callFrames) |
| 39 { | 39 { |
| 40 InspectorTest.addResult("Script execution paused."); | 40 InspectorTest.addResult("Script execution paused."); |
| 41 InspectorTest.captureStackTrace(callFrames); | 41 InspectorTest.captureStackTrace(callFrames); |
| 42 InspectorTest.dumpBreakpointSidebarPane(); | 42 InspectorTest.dumpBreakpointSidebarPane(); |
| 43 InspectorTest.addSniffer(currentSourceFrame, "_removeBreakpointD
ecoration", breakpointRemoved); | 43 InspectorTest.waitBreakpointSidebarPane().then(breakpointRemoved
); |
| 44 InspectorTest.removeBreakpoint(currentSourceFrame, 16); | 44 InspectorTest.removeBreakpoint(currentSourceFrame, 16); |
| 45 } | 45 } |
| 46 | 46 |
| 47 function breakpointRemoved() | 47 function breakpointRemoved() |
| 48 { | 48 { |
| 49 InspectorTest.resumeExecution(didResume); | 49 InspectorTest.resumeExecution(didResume); |
| 50 } | 50 } |
| 51 | 51 |
| 52 function didResume() | 52 function didResume() |
| 53 { | 53 { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 </script> | 142 </script> |
| 143 </head> | 143 </head> |
| 144 | 144 |
| 145 <body onload="runTest()"> | 145 <body onload="runTest()"> |
| 146 <p> | 146 <p> |
| 147 Tests setting breakpoints. | 147 Tests setting breakpoints. |
| 148 </p> | 148 </p> |
| 149 | 149 |
| 150 </body> | 150 </body> |
| 151 </html> | 151 </html> |
| OLD | NEW |