| 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 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 function testBreakpointsSetInFormattedAndRemoveInOriginalSource(next) | 22 function testBreakpointsSetInFormattedAndRemoveInOriginalSource(next) |
| 23 { | 23 { |
| 24 InspectorTest.showScriptSource("unformatted3.js", didShowScriptSourc
e); | 24 InspectorTest.showScriptSource("unformatted3.js", didShowScriptSourc
e); |
| 25 | 25 |
| 26 function didShowScriptSource(frame) | 26 function didShowScriptSource(frame) |
| 27 { | 27 { |
| 28 InspectorTest.addSniffer(Sources.ScriptFormatterEditorAction.pro
totype, "_updateButton", uiSourceCodeScriptFormatted); | 28 InspectorTest.addSniffer(Sources.ScriptFormatterEditorAction.pro
totype, "_updateButton", uiSourceCodeScriptFormatted); |
| 29 scriptFormatter._toggleFormatScriptSource(); | 29 scriptFormatter._toggleFormatScriptSource(); |
| 30 } | 30 } |
| 31 | 31 |
| 32 function uiSourceCodeScriptFormatted() | 32 function uiSourceCodeScriptFormatted() |
| 33 { | 33 { |
| 34 var formattedSourceFrame = panel.visibleView; | 34 var formattedSourceFrame = panel.visibleView; |
| 35 InspectorTest.setBreakpoint(formattedSourceFrame, 3, "", true); | 35 InspectorTest.setBreakpoint(formattedSourceFrame, 3, "", true); |
| 36 InspectorTest.waitBreakpointSidebarPane().then(evaluateF2); | 36 InspectorTest.waitBreakpointSidebarPane().then(evaluateF2); |
| 37 } | 37 } |
| 38 | 38 |
| 39 function evaluateF2() { | 39 function evaluateF2() { |
| 40 InspectorTest.waitUntilPaused(pausedInF2); | 40 InspectorTest.waitUntilPaused(pausedInF2); |
| 41 InspectorTest.evaluateInPageWithTimeout("f2()"); | 41 InspectorTest.evaluateInPageWithTimeout("f2()"); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 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 |