| 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="resources/unformatted.js"></script> | 5 <script src="resources/unformatted2.js"></script> |
| 6 <script> | 6 <script> |
| 7 var test = function() | 7 var test = function() |
| 8 { | 8 { |
| 9 WebInspector.breakpointManager._storage._breakpoints = {}; | 9 WebInspector.breakpointManager._storage._breakpoints = {}; |
| 10 var panel = WebInspector.inspectorView.showPanel("sources"); | 10 var panel = WebInspector.inspectorView.showPanel("sources"); |
| 11 var scriptFormatter = InspectorTest.scriptFormatter(); | 11 var scriptFormatter = InspectorTest.scriptFormatter(); |
| 12 var sourceFrame; | 12 var sourceFrame; |
| 13 var formattedSourceFrame; | 13 var formattedSourceFrame; |
| 14 | 14 |
| 15 InspectorTest.runDebuggerTestSuite([ | 15 InspectorTest.runDebuggerTestSuite([ |
| 16 function testBreakpointsSetInFormattedAndRemoveInOriginalSource(next) | 16 function testBreakpointsSetInFormattedAndRemoveInOriginalSource(next) |
| 17 { | 17 { |
| 18 InspectorTest.showScriptSource("unformatted.js", didShowScriptSource
); | 18 InspectorTest.showScriptSource("unformatted2.js", didShowScriptSourc
e); |
| 19 | 19 |
| 20 function didShowScriptSource(frame) | 20 function didShowScriptSource(frame) |
| 21 { | 21 { |
| 22 sourceFrame = frame; | 22 sourceFrame = frame; |
| 23 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio
n.prototype, "_updateButton", uiSourceCodeScriptFormatted); | 23 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio
n.prototype, "_updateButton", uiSourceCodeScriptFormatted); |
| 24 scriptFormatter._toggleFormatScriptSource(); | 24 scriptFormatter._toggleFormatScriptSource(); |
| 25 } | 25 } |
| 26 | 26 |
| 27 function uiSourceCodeScriptFormatted() | 27 function uiSourceCodeScriptFormatted() |
| 28 { | 28 { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 44 ]); | 44 ]); |
| 45 | 45 |
| 46 } | 46 } |
| 47 </script> | 47 </script> |
| 48 </head> | 48 </head> |
| 49 <body onload="runTest()"> | 49 <body onload="runTest()"> |
| 50 <p>Tests the script formatting is working fine with breakpoints. | 50 <p>Tests the script formatting is working fine with breakpoints. |
| 51 </p> | 51 </p> |
| 52 </body> | 52 </body> |
| 53 </html> | 53 </html> |
| OLD | NEW |