summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fetch/api/policies/csp-blocked.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/fetch/api/policies/csp-blocked.js')
-rw-r--r--testing/web-platform/tests/fetch/api/policies/csp-blocked.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/testing/web-platform/tests/fetch/api/policies/csp-blocked.js b/testing/web-platform/tests/fetch/api/policies/csp-blocked.js
deleted file mode 100644
index 0395304b8..000000000
--- a/testing/web-platform/tests/fetch/api/policies/csp-blocked.js
+++ /dev/null
@@ -1,13 +0,0 @@
-if (this.document === undefined) {
- importScripts("/resources/testharness.js");
- importScripts("../resources/utils.js");
-}
-
-//Content-Security-Policy: connect-src 'none'; cf .headers file
-cspViolationUrl = RESOURCES_DIR + "top.txt";
-
-promise_test(function(test) {
- return promise_rejects(test, new TypeError(), fetch(cspViolationUrl));
-}, "Fetch is blocked by CSP, got a TypeError");
-
-done();