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

Side by Side Diff: LayoutTests/inspector/debugger/source-url-comment.html

Issue 23484056: [DevTools] Renaming Scripts panel to Sources panel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified missed files Created 7 years, 3 months 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/debugger-test.js"></script> 4 <script src="../../http/tests/inspector/debugger-test.js"></script>
5 <script> 5 <script>
6 function keepAliveInInlineScript() { } 6 function keepAliveInInlineScript() { }
7 7
8 //# sourceURL=inlineScriptURL.js 8 //# sourceURL=inlineScriptURL.js
9 </script> 9 </script>
10 <script> 10 <script>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 { 47 {
48 InspectorTest.showScriptSource("source-url-comment.html", didShowScr iptSource); 48 InspectorTest.showScriptSource("source-url-comment.html", didShowScr iptSource);
49 49
50 function didShowScriptSource(sourceFrame) 50 function didShowScriptSource(sourceFrame)
51 { 51 {
52 function checkScriptDoesNotHaveSourceURL(script) 52 function checkScriptDoesNotHaveSourceURL(script)
53 { 53 {
54 InspectorTest.assertTrue(!script.hasSourceURL, "hasSourceURL flag is set for inline script"); 54 InspectorTest.assertTrue(!script.hasSourceURL, "hasSourceURL flag is set for inline script");
55 } 55 }
56 56
57 var panel = WebInspector.panel("scripts"); 57 var panel = WebInspector.panel("sources");
58 var uiSourceCodes = panel._workspace.uiSourceCodes(); 58 var uiSourceCodes = panel._workspace.uiSourceCodes();
59 for (var i = 0; i < uiSourceCodes.length; ++i) 59 for (var i = 0; i < uiSourceCodes.length; ++i)
60 InspectorTest.assertTrue(uiSourceCodes[i].originURL().indexO f("inlineScriptURL.js") === -1, "sourceURL comment in inline script was used as a script name"); 60 InspectorTest.assertTrue(uiSourceCodes[i].originURL().indexO f("inlineScriptURL.js") === -1, "sourceURL comment in inline script was used as a script name");
61 forEachScriptMatchingURL("source-url-comment.html", checkScriptD oesNotHaveSourceURL) 61 forEachScriptMatchingURL("source-url-comment.html", checkScriptD oesNotHaveSourceURL)
62 next(); 62 next();
63 } 63 }
64 }, 64 },
65 65
66 function testSourceURLComment(next) 66 function testSourceURLComment(next)
67 { 67 {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 }; 138 };
139 139
140 </script> 140 </script>
141 141
142 </head> 142 </head>
143 143
144 <body onload="runTest()"> 144 <body onload="runTest()">
145 <p>Tests that evals with sourceURL comment are shown in scripts panel.</p> 145 <p>Tests that evals with sourceURL comment are shown in scripts panel.</p>
146 </body> 146 </body>
147 </html> 147 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698