| OLD | NEW |
| 1 Tests that all inlined scripts from the same document are shown in the same sour
ce frame with html script tags. Bug 54544. | 1 Tests that all inlined scripts from the same document are shown in the same sour
ce frame with html script tags. Bug 54544. |
| 2 | 2 |
| 3 Script source was shown. | 3 Script source was shown. |
| 4 Script execution paused. | 4 Script execution paused. |
| 5 Call stack: | 5 Call stack: |
| 6 0) (debug-inlined-scripts.html:3) | 6 0) f1 (debug-inlined-scripts.html:3) |
| 7 1) (debug-inlined-scripts.html:3) |
| 7 Call stack status: Paused on breakpoint | 8 Call stack status: Paused on breakpoint |
| 8 ==Source frame contents start== | 9 ==Source frame contents start== |
| 9 <html> | 10 <html> |
| 10 <head> | 11 <head> |
| 11 <script> function f1() { return 0; }; f1(); </script> <script>function f
2() { return 0; }</script><script> | 12 <script> function f1() { return 0; }; f1(); </script> <script>function f
2() { return 0; }</script><script> |
| 12 function f3() { return 0; } | 13 function f3() { return 0; } |
| 13 </script> | 14 </script> |
| 14 | 15 |
| 15 <script> | 16 <script> |
| 16 function f4() | 17 function f4() |
| (...skipping 20 matching lines...) Expand all Loading... |
| 37 } | 38 } |
| 38 | 39 |
| 39 function step1() | 40 function step1() |
| 40 { | 41 { |
| 41 InspectorTest.showScriptSource("debug-inlined-scripts.html", step2); | 42 InspectorTest.showScriptSource("debug-inlined-scripts.html", step2); |
| 42 } | 43 } |
| 43 | 44 |
| 44 function step2(sourceFrame) | 45 function step2(sourceFrame) |
| 45 { | 46 { |
| 46 InspectorTest.addResult("Script source was shown."); | 47 InspectorTest.addResult("Script source was shown."); |
| 48 InspectorTest.prepareSourceFrameForBreakpointTest(sourceFrame); |
| 49 |
| 47 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); | 50 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); |
| 48 InspectorTest.setBreakpoint(sourceFrame, 9, "", true); | 51 InspectorTest.setBreakpoint(sourceFrame, 9, "", true); |
| 52 |
| 53 InspectorTest.waitJavaScriptSourceFrameBreakpoints(sourceFrame) |
| 54 .then(() => { |
| 55 InspectorTest.reloadPage(() => InspectorTest.completeDebuggerTes
t()); |
| 56 }); |
| 57 |
| 49 InspectorTest.waitUntilPaused(step3); | 58 InspectorTest.waitUntilPaused(step3); |
| 50 InspectorTest.reloadPage(InspectorTest.completeDebuggerTest.bind(Inspect
orTest)); | |
| 51 } | 59 } |
| 52 | 60 |
| 53 function step3(callFrames) | 61 function step3(callFrames) |
| 54 { | 62 { |
| 55 InspectorTest.addResult("Script execution paused."); | 63 InspectorTest.addResult("Script execution paused."); |
| 56 InspectorTest.captureStackTrace(callFrames); | 64 InspectorTest.captureStackTrace(callFrames); |
| 57 InspectorTest.addResult("Call stack status: " + callstackStatus()); | 65 InspectorTest.addResult("Call stack status: " + callstackStatus()); |
| 58 InspectorTest.showScriptSource("debug-inlined-scripts.html", step4); | 66 InspectorTest.showScriptSource("debug-inlined-scripts.html", step4); |
| 59 } | 67 } |
| 60 | 68 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 } | 146 } |
| 139 | 147 |
| 140 function step1() | 148 function step1() |
| 141 { | 149 { |
| 142 InspectorTest.showScriptSource("debug-inlined-scripts.html", step2); | 150 InspectorTest.showScriptSource("debug-inlined-scripts.html", step2); |
| 143 } | 151 } |
| 144 | 152 |
| 145 function step2(sourceFrame) | 153 function step2(sourceFrame) |
| 146 { | 154 { |
| 147 InspectorTest.addResult("Script source was shown."); | 155 InspectorTest.addResult("Script source was shown."); |
| 156 InspectorTest.prepareSourceFrameForBreakpointTest(sourceFrame); |
| 157 |
| 148 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); | 158 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); |
| 149 InspectorTest.setBreakpoint(sourceFrame, 9, "", true); | 159 InspectorTest.setBreakpoint(sourceFrame, 9, "", true); |
| 160 |
| 161 InspectorTest.waitJavaScriptSourceFrameBreakpoints(sourceFrame) |
| 162 .then(() => { |
| 163 InspectorTest.reloadPage(() => InspectorTest.completeDebuggerTes
t()); |
| 164 }); |
| 165 |
| 150 InspectorTest.waitUntilPaused(step3); | 166 InspectorTest.waitUntilPaused(step3); |
| 151 InspectorTest.reloadPage(InspectorTest.completeDebuggerTest.bind(Inspect
orTest)); | |
| 152 } | 167 } |
| 153 | 168 |
| 154 function step3(callFrames) | 169 function step3(callFrames) |
| 155 { | 170 { |
| 156 InspectorTest.addResult("Script execution paused."); | 171 InspectorTest.addResult("Script execution paused."); |
| 157 InspectorTest.captureStackTrace(callFrames); | 172 InspectorTest.captureStackTrace(callFrames); |
| 158 InspectorTest.addResult("Call stack status: " + callstackStatus()); | 173 InspectorTest.addResult("Call stack status: " + callstackStatus()); |
| 159 InspectorTest.showScriptSource("debug-inlined-scripts.html", step4); | 174 InspectorTest.showScriptSource("debug-inlined-scripts.html", step4); |
| 160 } | 175 } |
| 161 | 176 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 Tests that all inlined scripts from the same document are shown in the same sour
ce frame with html script tags. | 213 Tests that all inlined scripts from the same document are shown in the same sour
ce frame with html script tags. |
| 199 <a href="https://bugs.webkit.org/show_bug.cgi?id=54544">Bug 54544.</a> | 214 <a href="https://bugs.webkit.org/show_bug.cgi?id=54544">Bug 54544.</a> |
| 200 </p> | 215 </p> |
| 201 | 216 |
| 202 </body> | 217 </body> |
| 203 </html> | 218 </html> |
| 204 | 219 |
| 205 ==Source frame contents end== | 220 ==Source frame contents end== |
| 206 Page reloaded. | 221 Page reloaded. |
| 207 | 222 |
| OLD | NEW |