| 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 function testFunction() | 6 function testFunction() |
| 7 { | 7 { |
| 8 var x = Math.sqrt(10); | 8 var x = Math.sqrt(10); |
| 9 console.log("Done."); | 9 console.log("Done."); |
| 10 return x; | 10 return x; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 function didResume(callFrames) | 86 function didResume(callFrames) |
| 87 { | 87 { |
| 88 InspectorTest.addResult("Script execution resumed."); | 88 InspectorTest.addResult("Script execution resumed."); |
| 89 } | 89 } |
| 90 | 90 |
| 91 function testFunctionFinished() | 91 function testFunctionFinished() |
| 92 { | 92 { |
| 93 InspectorTest.addResult("Test function finished."); | 93 InspectorTest.addResult("Test function finished."); |
| 94 InspectorTest.dumpBreakpointSidebarPane(); | 94 InspectorTest.dumpBreakpointSidebarPane(); |
| 95 InspectorTest.addSniffer(currentSourceFrame, "_removeBreakpointD
ecoration", breakpointRemoved); | 95 InspectorTest.waitBreakpointSidebarPane().then(breakpointRemoved
); |
| 96 InspectorTest.removeBreakpoint(currentSourceFrame, 7); | 96 InspectorTest.removeBreakpoint(currentSourceFrame, 7); |
| 97 } | 97 } |
| 98 | 98 |
| 99 function breakpointRemoved() | 99 function breakpointRemoved() |
| 100 { | 100 { |
| 101 InspectorTest.addResult("Breakpoints removed."); | 101 InspectorTest.addResult("Breakpoints removed."); |
| 102 InspectorTest.dumpBreakpointSidebarPane(); | 102 InspectorTest.dumpBreakpointSidebarPane(); |
| 103 next(); | 103 next(); |
| 104 } | 104 } |
| 105 }, | 105 }, |
| 106 ]); | 106 ]); |
| 107 } | 107 } |
| 108 </script> | 108 </script> |
| 109 </head> | 109 </head> |
| 110 <body onload="runTest()"> | 110 <body onload="runTest()"> |
| 111 <p>Tests disabling breakpoints.</p> | 111 <p>Tests disabling breakpoints.</p> |
| 112 </body> | 112 </body> |
| 113 </html> | 113 </html> |
| OLD | NEW |