| 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="../../../inspector/sources/debugger/resources/unformatted.js"></scr
ipt> | 5 <script src="../../../inspector/sources/debugger/resources/unformatted.js"></scr
ipt> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 function f1() | 9 function f1() |
| 10 { | 10 { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 { | 66 { |
| 67 // There should be a breakpoint in f1 although script is pretty-
printed. | 67 // There should be a breakpoint in f1 although script is pretty-
printed. |
| 68 InspectorTest.waitUntilPaused(pausedInF1Again); | 68 InspectorTest.waitUntilPaused(pausedInF1Again); |
| 69 InspectorTest.evaluateInPageWithTimeout("f1()"); | 69 InspectorTest.evaluateInPageWithTimeout("f1()"); |
| 70 } | 70 } |
| 71 | 71 |
| 72 function pausedInF1Again(callFrames) | 72 function pausedInF1Again(callFrames) |
| 73 { | 73 { |
| 74 InspectorTest.dumpBreakpointSidebarPane("while paused in pretty
printed"); | 74 InspectorTest.dumpBreakpointSidebarPane("while paused in pretty
printed"); |
| 75 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl
eView.uiSourceCode()); | 75 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl
eView.uiSourceCode()); |
| 76 InspectorTest.addSniffer(Sources.JavaScriptBreakpointsSidebarPan
e.prototype, "didReceiveBreakpointLineForTest", onBreakpointsUpdated); | 76 InspectorTest.waitBreakpointSidebarPane().then(onBreakpointsUpda
ted); |
| 77 } | 77 } |
| 78 | 78 |
| 79 function onBreakpointsUpdated() | 79 function onBreakpointsUpdated() |
| 80 { | 80 { |
| 81 InspectorTest.dumpBreakpointSidebarPane("while paused in raw"); | 81 InspectorTest.dumpBreakpointSidebarPane("while paused in raw"); |
| 82 InspectorTest.removeBreakpoint(sourceFrame, 11); | 82 InspectorTest.removeBreakpoint(sourceFrame, 11); |
| 83 InspectorTest.resumeExecution(next); | 83 InspectorTest.resumeExecution(next); |
| 84 } | 84 } |
| 85 } | 85 } |
| 86 ]); | 86 ]); |
| 87 | 87 |
| 88 } | 88 } |
| 89 </script> | 89 </script> |
| 90 </head> | 90 </head> |
| 91 <body onload="onload()"> | 91 <body onload="onload()"> |
| 92 <p>Tests the script formatting is working fine with breakpoints. | 92 <p>Tests the script formatting is working fine with breakpoints. |
| 93 </p> | 93 </p> |
| 94 </body> | 94 </body> |
| 95 </html> | 95 </html> |
| OLD | NEW |