| Index: LayoutTests/inspector/debugger/debug-inlined-scripts-fragment-id-expected.txt
|
| diff --git a/LayoutTests/inspector/debugger/debug-inlined-scripts.html b/LayoutTests/inspector/debugger/debug-inlined-scripts-fragment-id-expected.txt
|
| similarity index 56%
|
| copy from LayoutTests/inspector/debugger/debug-inlined-scripts.html
|
| copy to LayoutTests/inspector/debugger/debug-inlined-scripts-fragment-id-expected.txt
|
| index c581f7a56dd4ea2ee5b9064404eb4e7cf5d53e34..749f49d7940c79af13a744814639e04fc4112b5b 100644
|
| --- a/LayoutTests/inspector/debugger/debug-inlined-scripts.html
|
| +++ b/LayoutTests/inspector/debugger/debug-inlined-scripts-fragment-id-expected.txt
|
| @@ -1,9 +1,15 @@
|
| +Tests that all inlined scripts from the same document are shown in the same source frame with html script tags. Bug 54544.
|
| +
|
| +Debugger was enabled.
|
| +window.location: #hash
|
| +Script source was shown.
|
| +Script execution paused.
|
| +Call stack:
|
| + 0) f4 (debug-inlined-scripts-fragment-id.html:6)
|
| + 1) (debug-inlined-scripts-fragment-id.html:8)
|
| +==Source frame contents start==
|
| <html>
|
| <head>
|
| - <script> function f1() { return 0; }; f1(); </script> <script>function f2() { return 0; }</script><script>
|
| -function f3() { return 0; }
|
| -</script>
|
| -
|
| <script>
|
| function f4()
|
| {
|
| @@ -19,18 +25,25 @@ f4();
|
|
|
| var test = function()
|
| {
|
| - InspectorTest.startDebuggerTest(step1, true);
|
| + InspectorTest.startDebuggerTest(step0, true);
|
| +
|
| + function step0()
|
| + {
|
| + InspectorTest.evaluateInPage("window.location=\"#hash\"", step1);
|
| + }
|
|
|
| - function step1()
|
| + function step1(loc)
|
| {
|
| - InspectorTest.showScriptSource("debug-inlined-scripts.html", step2);
|
| + InspectorTest.addResult("window.location: " + loc.description);
|
| + InspectorTest.showScriptSource("debug-inlined-scripts-fragment-id.html", step2);
|
| }
|
|
|
| function step2(sourceFrame)
|
| {
|
| InspectorTest.addResult("Script source was shown.");
|
| - InspectorTest.setBreakpoint(sourceFrame, 2, "", true);
|
| - InspectorTest.setBreakpoint(sourceFrame, 9, "", true);
|
| + // Use fake resources to make sure that scripts will be loaded from JavaScript VM.
|
| + WebInspector.networkManager.inflightResourceForURL = function() { return new WebInspector.Resource(); };
|
| + InspectorTest.setBreakpoint(sourceFrame, 5, "", true);
|
| InspectorTest.waitUntilPaused(step3);
|
| InspectorTest.reloadPage(InspectorTest.completeDebuggerTest.bind(InspectorTest));
|
| }
|
| @@ -39,7 +52,7 @@ var test = function()
|
| {
|
| InspectorTest.addResult("Script execution paused.");
|
| InspectorTest.captureStackTrace(callFrames);
|
| - InspectorTest.showScriptSource("debug-inlined-scripts.html", step4);
|
| + InspectorTest.showScriptSource("debug-inlined-scripts-fragment-id.html", step4);
|
| }
|
|
|
| function step4(sourceFrame)
|
| @@ -54,10 +67,9 @@ var test = function()
|
| InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, step5));
|
| return;
|
| }
|
| -
|
| InspectorTest.addResult("Script execution paused.");
|
| InspectorTest.captureStackTrace(callFrames);
|
| - InspectorTest.showScriptSource("debug-inlined-scripts.html", step6);
|
| + InspectorTest.showScriptSource("debug-inlined-scripts-fragment-id.html", step6);
|
| }
|
|
|
| function step6(sourceFrame)
|
| @@ -79,8 +91,13 @@ var test = function()
|
| <body onload="runTest()">
|
| <p>
|
| Tests that all inlined scripts from the same document are shown in the same source frame with html script tags.
|
| -<a href="https://bugs.webkit.org/show_bug.cgi?id=54544">Bug 54544.</a>
|
| +<a id="hash" href="https://bugs.webkit.org/show_bug.cgi?id=54544">Bug 54544.</a>
|
| </p>
|
|
|
| </body>
|
| </html>
|
| +
|
| +==Source frame contents end==
|
| +Page reloaded.
|
| +Debugger was disabled.
|
| +
|
|
|