| 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 foo() { | 6 function foo() { |
| 7 var p = Promise.resolve() | 7 var p = Promise.resolve() |
| 8 .then(() => 239); | 8 .then(() => 239); |
| 9 console.log(42); | 9 console.log(42); |
| 10 // comments 1 | 10 // comments 1 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 <script> | 24 <script> |
| 25 | 25 |
| 26 function test() | 26 function test() |
| 27 { | 27 { |
| 28 InspectorTest.startDebuggerTestPromise() | 28 InspectorTest.startDebuggerTestPromise() |
| 29 .then(() => InspectorTest.showScriptSource("foo.js", didShowScriptSource
)); | 29 .then(() => InspectorTest.showScriptSource("foo.js", didShowScriptSource
)); |
| 30 | 30 |
| 31 function didShowScriptSource(sourceFrame) | 31 function didShowScriptSource(sourceFrame) |
| 32 { | 32 { |
| 33 var uiSourceCode = sourceFrame._uiSourceCode; | 33 var uiSourceCode = sourceFrame._uiSourceCode; |
| 34 var breakpointManager = WebInspector.breakpointManager; | 34 var breakpointManager = Bindings.breakpointManager; |
| 35 setBreakpoint(breakpointManager, sourceFrame, 3, false) | 35 setBreakpoint(breakpointManager, sourceFrame, 3, false) |
| 36 .then(() => setBreakpoint(breakpointManager, sourceFrame, 4, false)) | 36 .then(() => setBreakpoint(breakpointManager, sourceFrame, 4, false)) |
| 37 .then(() => setBreakpoint(breakpointManager, sourceFrame, 5, false)) | 37 .then(() => setBreakpoint(breakpointManager, sourceFrame, 5, false)) |
| 38 .then(() => setBreakpoint(breakpointManager, sourceFrame, 6, false)) | 38 .then(() => setBreakpoint(breakpointManager, sourceFrame, 6, false)) |
| 39 .then(() => setBreakpoint(breakpointManager, sourceFrame, 11, false)
) | 39 .then(() => setBreakpoint(breakpointManager, sourceFrame, 11, false)
) |
| 40 .then(() => setBreakpoint(breakpointManager, sourceFrame, 12, false)
) | 40 .then(() => setBreakpoint(breakpointManager, sourceFrame, 12, false)
) |
| 41 .then(() => setBreakpoint(breakpointManager, sourceFrame, 13, false)
) | 41 .then(() => setBreakpoint(breakpointManager, sourceFrame, 13, false)
) |
| 42 .then(() => InspectorTest.completeDebuggerTest()); | 42 .then(() => InspectorTest.completeDebuggerTest()); |
| 43 } | 43 } |
| 44 | 44 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 57 } | 57 } |
| 58 } | 58 } |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 </script> | 61 </script> |
| 62 </head> | 62 </head> |
| 63 <body onload="runTest()"> | 63 <body onload="runTest()"> |
| 64 <p>Checks that locations are correctly resolved for gutter click.</p> | 64 <p>Checks that locations are correctly resolved for gutter click.</p> |
| 65 </body> | 65 </body> |
| 66 </html> | 66 </html> |
| OLD | NEW |