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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 { | 52 { |
53 InspectorTest.addResult("Formatting."); | 53 InspectorTest.addResult("Formatting."); |
54 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio
n.prototype, "_updateButton", uiSourceCodeScriptFormatted); | 54 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio
n.prototype, "_updateButton", uiSourceCodeScriptFormatted); |
55 scriptFormatter._toggleFormatScriptSource(); | 55 scriptFormatter._toggleFormatScriptSource(); |
56 } | 56 } |
57 | 57 |
58 function uiSourceCodeScriptFormatted() | 58 function uiSourceCodeScriptFormatted() |
59 { | 59 { |
60 InspectorTest.addResult("Removing breakpoint."); | 60 InspectorTest.addResult("Removing breakpoint."); |
61 var formattedSourceFrame = panel.visibleView; | 61 var formattedSourceFrame = panel.visibleView; |
62 InspectorTest.removeBreakpoint(formattedSourceFrame, 18); | 62 InspectorTest.removeBreakpoint(formattedSourceFrame, 16); |
63 InspectorTest.addResult("Unformatting."); | 63 InspectorTest.addResult("Unformatting."); |
64 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl
eView.uiSourceCode()); | 64 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl
eView.uiSourceCode()); |
65 var breakpoints = WebInspector.breakpointManager._storage._setti
ng.get(); | 65 var breakpoints = WebInspector.breakpointManager._storage._setti
ng.get(); |
66 InspectorTest.assertEquals(breakpoints.length, 0, "There should
not be any breakpoints in the storage."); | 66 InspectorTest.assertEquals(breakpoints.length, 0, "There should
not be any breakpoints in the storage."); |
67 next(); | 67 next(); |
68 } | 68 } |
69 } | 69 } |
70 ]); | 70 ]); |
71 | 71 |
72 } | 72 } |
73 </script> | 73 </script> |
74 </head> | 74 </head> |
75 <body onload="onload()"> | 75 <body onload="onload()"> |
76 <p>Tests the script formatting is working fine with breakpoints. | 76 <p>Tests the script formatting is working fine with breakpoints. |
77 </p> | 77 </p> |
78 </body> | 78 </body> |
79 </html> | 79 </html> |
OLD | NEW |