| 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 12 matching lines...) Expand all Loading... |
| 23 var currentSourceFrame; | 23 var currentSourceFrame; |
| 24 InspectorTest.setQuiet(true); | 24 InspectorTest.setQuiet(true); |
| 25 InspectorTest.runDebuggerTestSuite([ | 25 InspectorTest.runDebuggerTestSuite([ |
| 26 function testSetBreakpoint(next) | 26 function testSetBreakpoint(next) |
| 27 { | 27 { |
| 28 InspectorTest.showScriptSource("set-breakpoint.html", didShowScriptS
ource); | 28 InspectorTest.showScriptSource("set-breakpoint.html", didShowScriptS
ource); |
| 29 | 29 |
| 30 function didShowScriptSource(sourceFrame) | 30 function didShowScriptSource(sourceFrame) |
| 31 { | 31 { |
| 32 currentSourceFrame = sourceFrame; | 32 currentSourceFrame = sourceFrame; |
| 33 InspectorTest.prepareSourceFrameForBreakpointTest(currentSourceF
rame); | |
| 34 InspectorTest.addResult("Script source was shown."); | 33 InspectorTest.addResult("Script source was shown."); |
| 35 InspectorTest.waitUntilPaused(didPause); | 34 InspectorTest.waitUntilPaused(didPause); |
| 36 InspectorTest.createNewBreakpoint(currentSourceFrame, 16, "", tr
ue) | 35 InspectorTest.createNewBreakpoint(currentSourceFrame, 16, "", tr
ue) |
| 37 .then(() => InspectorTest.waitBreakpointSidebarPane()) | 36 .then(() => InspectorTest.waitBreakpointSidebarPane()) |
| 38 .then(() => InspectorTest.runTestFunction()); | 37 .then(() => InspectorTest.runTestFunction()); |
| 39 } | 38 } |
| 40 | 39 |
| 41 function didPause(callFrames) | 40 function didPause(callFrames) |
| 42 { | 41 { |
| 43 InspectorTest.addResult("Script execution paused."); | 42 InspectorTest.addResult("Script execution paused."); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 </script> | 124 </script> |
| 126 </head> | 125 </head> |
| 127 | 126 |
| 128 <body onload="runTest()"> | 127 <body onload="runTest()"> |
| 129 <p> | 128 <p> |
| 130 Tests setting breakpoints. | 129 Tests setting breakpoints. |
| 131 </p> | 130 </p> |
| 132 | 131 |
| 133 </body> | 132 </body> |
| 134 </html> | 133 </html> |
| OLD | NEW |