3 <script> function f1() { return 0; }; f1(); </script> <script>function f2() { return 0; }</script><script>
4 function f3() { return 0; }
15 <script src="../../../http/tests/inspector/inspector-test.js"></script>
16 <script src="../../../http/tests/inspector/debugger-test.js"></script>
22 InspectorTest.startDebuggerTest(step1, true);
26 InspectorTest.showScriptSource("debug-inlined-scripts.html", step2);
29 function step2(sourceFrame)
31 InspectorTest.addResult("Script source was shown.");
32 InspectorTest.setBreakpoint(sourceFrame, 2, "", true);
33 InspectorTest.setBreakpoint(sourceFrame, 9, "", true);
34 InspectorTest.waitUntilPaused(step3);
35 InspectorTest.reloadPage(InspectorTest.completeDebuggerTest.bind(InspectorTest));
38 function step3(callFrames)
40 InspectorTest.addResult("Script execution paused.");
41 InspectorTest.captureStackTrace(callFrames);
42 InspectorTest.showScriptSource("debug-inlined-scripts.html", step4);
45 function step4(sourceFrame)
47 InspectorTest.dumpSourceFrameContents(sourceFrame);
48 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
51 function step5(callFrames)
53 if (callFrames[0].location.lineNumber !== 9) {
54 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
58 InspectorTest.addResult("Script execution paused.");
59 InspectorTest.captureStackTrace(callFrames);
60 InspectorTest.showScriptSource("debug-inlined-scripts.html", step6);
63 function step6(sourceFrame)
65 InspectorTest.dumpSourceFrameContents(sourceFrame);
66 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step7));
71 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
79 <body onload="runTest()">
81 Tests that all inlined scripts from the same document are shown in the same source frame with html script tags.
82 <a href="https://bugs.webkit.org/show_bug.cgi?id=54544">Bug 54544.</a>