Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: LayoutTests/inspector/debugger/debug-inlined-scripts-fragment-id-expected.txt

Issue 26538007: [devtools] Remove trailing fragment identifier from script urls (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase; remove inflightResourceForURL Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 60%
copy from LayoutTests/inspector/debugger/debug-inlined-scripts.html
copy to LayoutTests/inspector/debugger/debug-inlined-scripts-fragment-id-expected.txt
index c581f7a56dd4ea2ee5b9064404eb4e7cf5d53e34..9212e6d2d0bd1d2774dc4f1b5439f38bb69247d6 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,23 @@ 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);
+ InspectorTest.setBreakpoint(sourceFrame, 5, "", true);
InspectorTest.waitUntilPaused(step3);
InspectorTest.reloadPage(InspectorTest.completeDebuggerTest.bind(InspectorTest));
}
@@ -39,7 +50,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 +65,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 +89,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.
+
« no previous file with comments | « LayoutTests/inspector/debugger/debug-inlined-scripts-fragment-id.html ('k') | Source/bindings/v8/ScriptSourceCode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698