3 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../../http/tests/inspector/debugger-test.js"></script>
6 function createContentScript()
8 testRunner
.evaluateScriptInIsolatedWorld(239, "42\n//# sourceURL=239.js");
9 testRunner
.evaluateScriptInIsolatedWorld(42, "239\n//# sourceURL=42.js");
13 InspectorTest
.evaluateInPage("createContentScript()", step1
);
16 var scripts
= InspectorTest
.queryScripts(function(script
) { return script
._isContentScript
; });
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
);
23 InspectorTest
.completeTest();
28 <body onload=
"runTest()">
30 Tests that content scripts are reported.