| 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/unformatted3.js"></script> | 5 <script src="../debugger/resources/unformatted3.js"></script> |
| 6 <script> | 6 <script> |
| 7 var test = function() | 7 var test = function() |
| 8 { | 8 { |
| 9 Bindings.breakpointManager._storage._breakpoints = {}; | 9 Bindings.breakpointManager._storage._breakpoints = {}; |
| 10 var panel = UI.panels.sources; | 10 var panel = UI.panels.sources; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 } | 42 } |
| 43 | 43 |
| 44 | 44 |
| 45 function pausedInF2(callFrames) | 45 function pausedInF2(callFrames) |
| 46 { | 46 { |
| 47 InspectorTest.dumpBreakpointSidebarPane("while paused in pretty
printed"); | 47 InspectorTest.dumpBreakpointSidebarPane("while paused in pretty
printed"); |
| 48 InspectorTest.waitBreakpointSidebarPane() | 48 InspectorTest.waitBreakpointSidebarPane() |
| 49 .then(() => InspectorTest.dumpBreakpointSidebarPane("while p
aused in raw")) | 49 .then(() => InspectorTest.dumpBreakpointSidebarPane("while p
aused in raw")) |
| 50 .then(() => InspectorTest.resumeExecution(next)); | 50 .then(() => InspectorTest.resumeExecution(next)); |
| 51 // No need to remove breakpoint since formattedUISourceCode was
removed. | 51 // No need to remove breakpoint since formattedUISourceCode was
removed. |
| 52 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl
eView.uiSourceCode()); | 52 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl
eView.uiSourceCode(), true); |
| 53 } | 53 } |
| 54 } | 54 } |
| 55 ]); | 55 ]); |
| 56 | 56 |
| 57 } | 57 } |
| 58 </script> | 58 </script> |
| 59 </head> | 59 </head> |
| 60 <body onload="runTest()"> | 60 <body onload="runTest()"> |
| 61 <p>Tests the script formatting is working fine with breakpoints. | 61 <p>Tests the script formatting is working fine with breakpoints. |
| 62 </p> | 62 </p> |
| 63 </body> | 63 </body> |
| 64 </html> | 64 </html> |
| OLD | NEW |