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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698