1 Tests that all inlined scripts from the same document are shown in the same source frame with html script tags. Bug 54544.
4 Script source was shown.
5 Script execution paused.
7 0) (debug-inlined-scripts.html:3)
8 ==Source frame contents start==
11 <script> function f1() { return 0; }; f1(); </script> <script>function f2() { return 0; }</script><script>
12 function f3() { return 0; }
23 <script src="../../../http/tests/inspector/inspector-test.js"></script>
24 <script src="../../../http/tests/inspector/debugger-test.js"></script>
30 InspectorTest.startDebuggerTest(step1, true);
34 InspectorTest.showScriptSource("debug-inlined-scripts.html", step2);
37 function step2(sourceFrame)
39 InspectorTest.addResult("Script source was shown.");
40 InspectorTest.setBreakpoint(sourceFrame, 2, "", true);
41 InspectorTest.setBreakpoint(sourceFrame, 9, "", true);
42 InspectorTest.waitUntilPaused(step3);
43 InspectorTest.reloadPage(InspectorTest.completeDebuggerTest.bind(InspectorTest));
46 function step3(callFrames)
48 InspectorTest.addResult("Script execution paused.");
49 InspectorTest.captureStackTrace(callFrames);
50 InspectorTest.showScriptSource("debug-inlined-scripts.html", step4);
53 function step4(sourceFrame)
55 InspectorTest.dumpSourceFrameContents(sourceFrame);
56 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
59 function step5(callFrames)
61 if (callFrames[0].location.lineNumber !== 9) {
62 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
66 InspectorTest.addResult("Script execution paused.");
67 InspectorTest.captureStackTrace(callFrames);
68 InspectorTest.showScriptSource("debug-inlined-scripts.html", step6);
71 function step6(sourceFrame)
73 InspectorTest.dumpSourceFrameContents(sourceFrame);
74 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step7));
79 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
87 <body onload="runTest()">
89 Tests that all inlined scripts from the same document are shown in the same source frame with html script tags.
90 <a href="https://bugs.webkit.org/show_bug.cgi?id=54544">Bug 54544.</a>
96 ==Source frame contents end==
97 Script execution paused.
99 0) f4 (debug-inlined-scripts.html:10)
100 1) (debug-inlined-scripts.html:12)
101 ==Source frame contents start==
104 <script> function f1() { return 0; }; f1(); </script> <script>function f2() { return 0; }</script><script>
105 function f3() { return 0; }
116 <script src="../../../http/tests/inspector/inspector-test.js"></script>
117 <script src="../../../http/tests/inspector/debugger-test.js"></script>
121 var test = function()
123 InspectorTest.startDebuggerTest(step1, true);
127 InspectorTest.showScriptSource("debug-inlined-scripts.html", step2);
130 function step2(sourceFrame)
132 InspectorTest.addResult("Script source was shown.");
133 InspectorTest.setBreakpoint(sourceFrame, 2, "", true);
134 InspectorTest.setBreakpoint(sourceFrame, 9, "", true);
135 InspectorTest.waitUntilPaused(step3);
136 InspectorTest.reloadPage(InspectorTest.completeDebuggerTest.bind(InspectorTest));
139 function step3(callFrames)
141 InspectorTest.addResult("Script execution paused.");
142 InspectorTest.captureStackTrace(callFrames);
143 InspectorTest.showScriptSource("debug-inlined-scripts.html", step4);
146 function step4(sourceFrame)
148 InspectorTest.dumpSourceFrameContents(sourceFrame);
149 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
152 function step5(callFrames)
154 if (callFrames[0].location.lineNumber !== 9) {
155 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
159 InspectorTest.addResult("Script execution paused.");
160 InspectorTest.captureStackTrace(callFrames);
161 InspectorTest.showScriptSource("debug-inlined-scripts.html", step6);
164 function step6(sourceFrame)
166 InspectorTest.dumpSourceFrameContents(sourceFrame);
167 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step7));
172 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
180 <body onload="runTest()">
182 Tests that all inlined scripts from the same document are shown in the same source frame with html script tags.
183 <a href="https://bugs.webkit.org/show_bug.cgi?id=54544">Bug 54544.</a>
189 ==Source frame contents end==
191 Debugger was disabled.