| 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 src="../debugger/resources/click-breakpoints.js"></script> | 5 <script src="../debugger/resources/click-breakpoints.js"></script> |
| 6 <script> | 6 <script> |
| 7 function test() | 7 function test() |
| 8 { | 8 { |
| 9 function clickCodeMirrorLineNumber(lineNumber, isRemove, sourceFrame) | 9 function clickCodeMirrorLineNumber(lineNumber, isRemove, sourceFrame) |
| 10 { | 10 { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 function didShowScriptSource(sourceFrame) | 34 function didShowScriptSource(sourceFrame) |
| 35 { | 35 { |
| 36 clickCodeMirrorLineNumber(2, false, sourceFrame) | 36 clickCodeMirrorLineNumber(2, false, sourceFrame) |
| 37 .then(() => clickCodeMirrorLineNumber(2, true, sourceFrame)) | 37 .then(() => clickCodeMirrorLineNumber(2, true, sourceFrame)) |
| 38 .then(() => clickCodeMirrorLineNumber(3, false, sourceFrame)) | 38 .then(() => clickCodeMirrorLineNumber(3, false, sourceFrame)) |
| 39 .then(runScript); | 39 .then(runScript); |
| 40 } | 40 } |
| 41 | 41 |
| 42 function runScript() | 42 function runScript() |
| 43 { | 43 { |
| 44 InspectorTest.waitUntilPaused(pausedInF2); | 44 Promise.all([InspectorTest.waitBreakpointSidebarPane(), new Promise(reso
lve => InspectorTest.waitUntilPaused(resolve))]) |
| 45 .then(() => InspectorTest.dumpBreakpointSidebarPane("while paused")) |
| 46 .then(() => InspectorTest.completeDebuggerTest()); |
| 45 InspectorTest.evaluateInPageWithTimeout("f2()"); | 47 InspectorTest.evaluateInPageWithTimeout("f2()"); |
| 46 } | 48 } |
| 47 | |
| 48 function pausedInF2(callFrames) | |
| 49 { | |
| 50 InspectorTest.dumpBreakpointSidebarPane("while paused"); | |
| 51 InspectorTest.completeDebuggerTest(); | |
| 52 } | |
| 53 | |
| 54 } | 49 } |
| 55 </script> | 50 </script> |
| 56 </head> | 51 </head> |
| 57 <body onload="runTest()"> | 52 <body onload="runTest()"> |
| 58 <p>Tests that breakpoints can be added and removed by clicking the gutter. | 53 <p>Tests that breakpoints can be added and removed by clicking the gutter. |
| 59 </p> | 54 </p> |
| 60 </body> | 55 </body> |
| 61 </html> | 56 </html> |
| OLD | NEW |