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

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
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/sources-panel-content-scripts-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..57b49edce655c04849c828b8ae5b29f72fd64509
--- /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; });
+ 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>
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/sources-panel-content-scripts-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698