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/unformatted.js"></scr
ipt> | 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 { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 { | 66 { |
67 // There should be a breakpoint in f1 although script is pretty-
printed. | 67 // There should be a breakpoint in f1 although script is pretty-
printed. |
68 InspectorTest.waitUntilPaused(pausedInF1Again); | 68 InspectorTest.waitUntilPaused(pausedInF1Again); |
69 InspectorTest.evaluateInPageWithTimeout("f1()"); | 69 InspectorTest.evaluateInPageWithTimeout("f1()"); |
70 } | 70 } |
71 | 71 |
72 function pausedInF1Again(callFrames) | 72 function pausedInF1Again(callFrames) |
73 { | 73 { |
74 InspectorTest.dumpBreakpointSidebarPane("while paused in pretty
printed"); | 74 InspectorTest.dumpBreakpointSidebarPane("while paused in pretty
printed"); |
75 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl
eView.uiSourceCode()); | 75 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl
eView.uiSourceCode()); |
| 76 InspectorTest.addSniffer(WebInspector.JavaScriptBreakpointsSideb
arPane.prototype, "didReceiveBreakpointLineForTest", onBreakpointsUpdated); |
| 77 } |
| 78 |
| 79 function onBreakpointsUpdated() |
| 80 { |
76 InspectorTest.dumpBreakpointSidebarPane("while paused in raw"); | 81 InspectorTest.dumpBreakpointSidebarPane("while paused in raw"); |
77 InspectorTest.removeBreakpoint(sourceFrame, 11); | 82 InspectorTest.removeBreakpoint(sourceFrame, 11); |
78 InspectorTest.resumeExecution(next); | 83 InspectorTest.resumeExecution(next); |
79 } | 84 } |
80 } | 85 } |
81 ]); | 86 ]); |
82 | 87 |
83 } | 88 } |
84 </script> | 89 </script> |
85 </head> | 90 </head> |
86 <body onload="onload()"> | 91 <body onload="onload()"> |
87 <p>Tests the script formatting is working fine with breakpoints. | 92 <p>Tests the script formatting is working fine with breakpoints. |
88 </p> | 93 </p> |
89 </body> | 94 </body> |
90 </html> | 95 </html> |
OLD | NEW |