| 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/unformatted4.js"></sc
ript> | 5 <script src="../../../inspector/sources/debugger/resources/unformatted4.js"></sc
ript> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 function f1() | 9 function f1() |
| 10 { | 10 { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 { | 44 { |
| 45 InspectorTest.addResult("Formatting."); | 45 InspectorTest.addResult("Formatting."); |
| 46 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio
n.prototype, "_updateButton", uiSourceCodeScriptFormatted); | 46 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio
n.prototype, "_updateButton", uiSourceCodeScriptFormatted); |
| 47 scriptFormatter._toggleFormatScriptSource(); | 47 scriptFormatter._toggleFormatScriptSource(); |
| 48 } | 48 } |
| 49 | 49 |
| 50 function uiSourceCodeScriptFormatted() | 50 function uiSourceCodeScriptFormatted() |
| 51 { | 51 { |
| 52 InspectorTest.addResult("Removing breakpoint."); | 52 InspectorTest.addResult("Removing breakpoint."); |
| 53 var formattedSourceFrame = panel.visibleView; | 53 var formattedSourceFrame = panel.visibleView; |
| 54 InspectorTest.removeBreakpoint(formattedSourceFrame, 16); | 54 InspectorTest.removeBreakpoint(formattedSourceFrame, 19); |
| 55 InspectorTest.addResult("Unformatting."); | 55 InspectorTest.addResult("Unformatting."); |
| 56 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl
eView.uiSourceCode()); | 56 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl
eView.uiSourceCode()); |
| 57 var breakpoints = WebInspector.breakpointManager._storage._setti
ng.get(); | 57 var breakpoints = WebInspector.breakpointManager._storage._setti
ng.get(); |
| 58 InspectorTest.assertEquals(breakpoints.length, 0, "There should
not be any breakpoints in the storage."); | 58 InspectorTest.assertEquals(breakpoints.length, 0, "There should
not be any breakpoints in the storage."); |
| 59 next(); | 59 next(); |
| 60 } | 60 } |
| 61 } | 61 } |
| 62 ]); | 62 ]); |
| 63 | 63 |
| 64 } | 64 } |
| 65 </script> | 65 </script> |
| 66 </head> | 66 </head> |
| 67 <body onload="onload()"> | 67 <body onload="onload()"> |
| 68 <p>Tests the script formatting is working fine with breakpoints. | 68 <p>Tests the script formatting is working fine with breakpoints. |
| 69 </p> | 69 </p> |
| 70 </body> | 70 </body> |
| 71 </html> | 71 </html> |
| OLD | NEW |