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

Unified Diff: LayoutTests/http/tests/htmlimports/resources/csp-import-block-but-self.js

Issue 183883004: Let ContentSecurityPolicy shared between imports and the master. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Adding guardRef()/guardDeref() Created 6 years, 10 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/http/tests/htmlimports/resources/csp-import-block-but-self.js
diff --git a/LayoutTests/http/tests/htmlimports/resources/csp-import-block-but-self.js b/LayoutTests/http/tests/htmlimports/resources/csp-import-block-but-self.js
new file mode 100644
index 0000000000000000000000000000000000000000..e2d482460965497c39d236ea63e47bf4df35dadb
--- /dev/null
+++ b/LayoutTests/http/tests/htmlimports/resources/csp-import-block-but-self.js
@@ -0,0 +1,18 @@
+function test(actual, expected, message)
+{
+ if (actual === expected)
+ console.log("PASS");
+ else
+ console.log("FAIL:" + message);
+}
+
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+test(document.inlineScriptHasRun, undefined, "document.inlineScriptHasRun");
+test(document.externalScriptHasRun, true, "document.externalScriptHasRun");
+test(document.corsExternalScriptHasRun, undefined, "document.corsExternalScriptHasRun");
+test(document.evalFromInlineHasRun, undefined, "document.evalFromInlineHasRun");
+test(document.evalFromExternalHasRun, undefined, "document.evalFromExternalHasRun");
+test(document.evalFromCorsExternalHasRun, undefined, "document.evalFromCorsExternalHasRun");
+

Powered by Google App Engine
This is Rietveld 408576698