11 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
12 <script src=
"../../../http/tests/inspector/debugger-test.js"></script>
18 InspectorTest
.startDebuggerTest(step0
, true);
22 InspectorTest
.evaluateInPage("window.location=\"#hash\"", step1
);
27 InspectorTest
.addResult("window.location: " + loc
.description
);
28 InspectorTest
.showScriptSource("debug-inlined-scripts-fragment-id.html", step2
);
31 function step2(sourceFrame
)
33 InspectorTest
.addResult("Script source was shown.");
34 InspectorTest
.setBreakpoint(sourceFrame
, 5, "", true);
35 InspectorTest
.waitUntilPaused(step3
);
36 InspectorTest
.reloadPage(InspectorTest
.completeDebuggerTest
.bind(InspectorTest
));
39 function step3(callFrames
)
41 InspectorTest
.addResult("Script execution paused.");
42 InspectorTest
.captureStackTrace(callFrames
);
43 InspectorTest
.showScriptSource("debug-inlined-scripts-fragment-id.html", step4
);
46 function step4(sourceFrame
)
48 InspectorTest
.dumpSourceFrameContents(sourceFrame
);
49 InspectorTest
.resumeExecution(InspectorTest
.waitUntilPaused
.bind(null, step5
));
52 function step5(callFrames
)
54 if (callFrames
[0].location
.lineNumber
!== 9) {
55 InspectorTest
.resumeExecution(InspectorTest
.waitUntilPaused
.bind(null, step5
));
58 InspectorTest
.addResult("Script execution paused.");
59 InspectorTest
.captureStackTrace(callFrames
);
60 InspectorTest
.showScriptSource("debug-inlined-scripts-fragment-id.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 id=
"hash" href=
"https://bugs.webkit.org/show_bug.cgi?id=54544">Bug
54544.
</a>