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

Side by Side Diff: LayoutTests/inspector/debugger/debug-inlined-scripts-fragment-id.html

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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector/debugger/debug-inlined-scripts-fragment-id-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> function f1() { return 0; }; f1(); </script> <script>function f 2() { return 0; }</script><script>
4 function f3() { return 0; }
5 </script>
6
7 <script> 3 <script>
8 function f4() 4 function f4()
9 { 5 {
10 return 0; 6 return 0;
11 } 7 }
12 f4(); 8 f4();
13 </script> 9 </script>
14 10
15 <script src="../../http/tests/inspector/inspector-test.js"></script> 11 <script src="../../http/tests/inspector/inspector-test.js"></script>
16 <script src="../../http/tests/inspector/debugger-test.js"></script> 12 <script src="../../http/tests/inspector/debugger-test.js"></script>
17 13
18 <script> 14 <script>
19 15
20 var test = function() 16 var test = function()
21 { 17 {
22 InspectorTest.startDebuggerTest(step1, true); 18 InspectorTest.startDebuggerTest(step0, true);
23 19
24 function step1() 20 function step0()
25 { 21 {
26 InspectorTest.showScriptSource("debug-inlined-scripts.html", step2); 22 InspectorTest.evaluateInPage("window.location=\"#hash\"", step1);
23 }
24
25 function step1(loc)
26 {
27 InspectorTest.addResult("window.location: " + loc.description);
28 InspectorTest.showScriptSource("debug-inlined-scripts-fragment-id.html", step2);
27 } 29 }
28 30
29 function step2(sourceFrame) 31 function step2(sourceFrame)
30 { 32 {
31 InspectorTest.addResult("Script source was shown."); 33 InspectorTest.addResult("Script source was shown.");
32 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); 34 InspectorTest.setBreakpoint(sourceFrame, 5, "", true);
33 InspectorTest.setBreakpoint(sourceFrame, 9, "", true);
34 InspectorTest.waitUntilPaused(step3); 35 InspectorTest.waitUntilPaused(step3);
35 InspectorTest.reloadPage(InspectorTest.completeDebuggerTest.bind(Inspect orTest)); 36 InspectorTest.reloadPage(InspectorTest.completeDebuggerTest.bind(Inspect orTest));
36 } 37 }
37 38
38 function step3(callFrames) 39 function step3(callFrames)
39 { 40 {
40 InspectorTest.addResult("Script execution paused."); 41 InspectorTest.addResult("Script execution paused.");
41 InspectorTest.captureStackTrace(callFrames); 42 InspectorTest.captureStackTrace(callFrames);
42 InspectorTest.showScriptSource("debug-inlined-scripts.html", step4); 43 InspectorTest.showScriptSource("debug-inlined-scripts-fragment-id.html", step4);
43 } 44 }
44 45
45 function step4(sourceFrame) 46 function step4(sourceFrame)
46 { 47 {
47 InspectorTest.dumpSourceFrameContents(sourceFrame); 48 InspectorTest.dumpSourceFrameContents(sourceFrame);
48 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, s tep5)); 49 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, s tep5));
49 } 50 }
50 51
51 function step5(callFrames) 52 function step5(callFrames)
52 { 53 {
53 if (callFrames[0].location.lineNumber !== 9) { 54 if (callFrames[0].location.lineNumber !== 9) {
54 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(nul l, step5)); 55 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(nul l, step5));
55 return; 56 return;
56 } 57 }
57
58 InspectorTest.addResult("Script execution paused."); 58 InspectorTest.addResult("Script execution paused.");
59 InspectorTest.captureStackTrace(callFrames); 59 InspectorTest.captureStackTrace(callFrames);
60 InspectorTest.showScriptSource("debug-inlined-scripts.html", step6); 60 InspectorTest.showScriptSource("debug-inlined-scripts-fragment-id.html", step6);
61 } 61 }
62 62
63 function step6(sourceFrame) 63 function step6(sourceFrame)
64 { 64 {
65 InspectorTest.dumpSourceFrameContents(sourceFrame); 65 InspectorTest.dumpSourceFrameContents(sourceFrame);
66 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, s tep7)); 66 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, s tep7));
67 } 67 }
68 68
69 function step7() 69 function step7()
70 { 70 {
71 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, s tep5)); 71 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(null, s tep5));
72 } 72 }
73 } 73 }
74 74
75 </script> 75 </script>
76 76
77 </head> 77 </head>
78 78
79 <body onload="runTest()"> 79 <body onload="runTest()">
80 <p> 80 <p>
81 Tests that all inlined scripts from the same document are shown in the same sour ce frame with html script tags. 81 Tests that all inlined scripts from the same document are shown in the same sour ce frame with html script tags.
82 <a href="https://bugs.webkit.org/show_bug.cgi?id=54544">Bug 54544.</a> 82 <a id="hash" href="https://bugs.webkit.org/show_bug.cgi?id=54544">Bug 54544.</a>
83 </p> 83 </p>
84 84
85 </body> 85 </body>
86 </html> 86 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/debugger/debug-inlined-scripts-fragment-id-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698