| 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="../../../inspector/sources/debugger/resources/unformatted.js"></scr
ipt> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 function f1() | 9 function f1() |
| 10 { | 10 { |
| 11 var a=0;var b=1;var c=3;var d=4;var e=5; | 11 var a=0;var b=1;var c=3;var d=4;var e=5; |
| 12 var f=0; | 12 var f=0; |
| 13 return 0; | 13 return 0; |
| 14 } | 14 } |
| 15 | 15 |
| 16 function onload() |
| 17 { |
| 18 if (window.testRunner) { |
| 19 testRunner.waitUntilDone(); |
| 20 testRunner.showWebInspector(); |
| 21 } |
| 22 runTest(); |
| 23 } |
| 24 |
| 16 var test = function() | 25 var test = function() |
| 17 { | 26 { |
| 18 WebInspector.breakpointManager._storage._breakpoints = {}; | 27 WebInspector.breakpointManager._storage._breakpoints = {}; |
| 19 var panel = WebInspector.inspectorView.showPanel("sources"); | 28 var panel = WebInspector.inspectorView.showPanel("sources"); |
| 20 var scriptFormatter = InspectorTest.scriptFormatter(); | 29 var scriptFormatter = InspectorTest.scriptFormatter(); |
| 21 var sourceFrame; | 30 var sourceFrame; |
| 22 | 31 |
| 23 InspectorTest.runDebuggerTestSuite([ | 32 InspectorTest.runDebuggerTestSuite([ |
| 24 function testBreakpointsInOriginalAndFormattedSource(next) | 33 function testBreakpointsInOriginalAndFormattedSource(next) |
| 25 { | 34 { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 InspectorTest.dumpBreakpointSidebarPane("while paused in raw"); | 68 InspectorTest.dumpBreakpointSidebarPane("while paused in raw"); |
| 60 InspectorTest.removeBreakpoint(sourceFrame, 11); | 69 InspectorTest.removeBreakpoint(sourceFrame, 11); |
| 61 InspectorTest.resumeExecution(next); | 70 InspectorTest.resumeExecution(next); |
| 62 } | 71 } |
| 63 } | 72 } |
| 64 ]); | 73 ]); |
| 65 | 74 |
| 66 } | 75 } |
| 67 </script> | 76 </script> |
| 68 </head> | 77 </head> |
| 69 <body onload="runTest()"> | 78 <body onload="onload()"> |
| 70 <p>Tests the script formatting is working fine with breakpoints. | 79 <p>Tests the script formatting is working fine with breakpoints. |
| 71 </p> | 80 </p> |
| 72 </body> | 81 </body> |
| 73 </html> | 82 </html> |
| OLD | NEW |