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"); |
+ |