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

Side by Side Diff: LayoutTests/inspector/sources/debugger/sources-panel-content-scripts.html

Issue 1306013004: [DevTools] Fixed content scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
(Empty)
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script>
6 function createContentScript()
7 {
8 testRunner.evaluateScriptInIsolatedWorld(239, "42\n//# sourceURL=239.js" );
9 testRunner.evaluateScriptInIsolatedWorld(42, "239\n//# sourceURL=42.js") ;
10 }
11 function test()
12 {
13 InspectorTest.evaluateInPage("createContentScript()", step1);
14 function step1()
15 {
16 var scripts = InspectorTest.queryScripts(function(script) { return scrip t._isContentScript; });
yurys 2015/08/28 20:23:47 Weird formatting, please fix.
kozy 2015/08/28 20:24:08 Done.
17 InspectorTest.addResult("Content Scripts:");
18 for (var i = 0; i < scripts.length; ++i) {
19 InspectorTest.addResult("#" + (i + 1) + ":");
20 InspectorTest.addResult(" sourceURL:" + scripts[i].sourceURL);
21 InspectorTest.addResult(" endColumn:" + scripts[i].endColumn);
22 }
23 InspectorTest.completeTest();
24 }
25 }
26 </script>
27 </head>
28 <body onload="runTest()">
29 <p>
30 Tests that content scripts are reported.
31 </p>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698