Chromium Code Reviews| OLD | NEW |
|---|---|
| (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> | |
| OLD | NEW |