Chromium Code Reviews| Index: LayoutTests/inspector/sources/debugger/sources-panel-content-scripts.html |
| diff --git a/LayoutTests/inspector/sources/debugger/sources-panel-content-scripts.html b/LayoutTests/inspector/sources/debugger/sources-panel-content-scripts.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9bfacb714eec230a6d5350fb688c421ce8ffc859 |
| --- /dev/null |
| +++ b/LayoutTests/inspector/sources/debugger/sources-panel-content-scripts.html |
| @@ -0,0 +1,33 @@ |
| +<html> |
| +<head> |
| +<script src="../../../http/tests/inspector/inspector-test.js"></script> |
| +<script src="../../../http/tests/inspector/debugger-test.js"></script> |
| +<script> |
| +function createContentScript() |
| +{ |
| + testRunner.evaluateScriptInIsolatedWorld(239, "42\n//# sourceURL=239.js"); |
| + testRunner.evaluateScriptInIsolatedWorld(42, "239\n//# sourceURL=42.js"); |
| +} |
| +function test() |
| +{ |
| + InspectorTest.evaluateInPage("createContentScript()", step1); |
| + function step1() |
| + { |
| + var scripts = InspectorTest.queryScripts(function(script) { return script._isContentScript; }); |
|
yurys
2015/08/28 20:23:47
Weird formatting, please fix.
kozy
2015/08/28 20:24:08
Done.
|
| + InspectorTest.addResult("Content Scripts:"); |
| + for (var i = 0; i < scripts.length; ++i) { |
| + InspectorTest.addResult("#" + (i + 1) + ":"); |
| + InspectorTest.addResult(" sourceURL:" + scripts[i].sourceURL); |
| + InspectorTest.addResult(" endColumn:" + scripts[i].endColumn); |
| + } |
| + InspectorTest.completeTest(); |
| + } |
| +} |
| +</script> |
| +</head> |
| +<body onload="runTest()"> |
| +<p> |
| +Tests that content scripts are reported. |
| +</p> |
| +</body> |
| +</html> |