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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/workers/resources/script-src-self.js

Issue 2765443003: CSP: Upstream worker tests to WPT repository. (Closed)
Patch Set: Created 3 years, 9 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 | « third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/workers/resources/connect-src-self.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/workers/resources/script-src-self.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/workers/resources/script-src-self.js b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/workers/resources/script-src-self.js
deleted file mode 100644
index 57f15321a074cfd4a4a0e9ef9cd13f66d6ab2732..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/workers/resources/script-src-self.js
+++ /dev/null
@@ -1,25 +0,0 @@
-importScripts("http://127.0.0.1:8000/resources/testharness.js");
-importScripts("http://127.0.0.1:8000/security/contentSecurityPolicy/resources/testharness-helper.js");
-
-test(t => {
- // TODO(mkwst): The error event isn't firing. :/
-
- assert_throws(EvalError(),
- function () { eval("1 + 1"); },
- "`eval()` should throw 'EvalError'.");
-
- assert_throws(EvalError(),
- function () { var x = new Function("1 + 1"); },
- "`new Function()` should throw 'EvalError'.");
-}, "`eval()` blocked in " + self.location.protocol);
-
-async_test(t => {
- waitUntilCSPEventForEval(t, 21)
- .then(_ => t.done());
-
- assert_equals(
- setTimeout("assert_unreached('setTimeout([string]) should not execute.')", 0),
- 0);
-}, "`setTimeout([string])` blocked in " + self.location.protocol);
-
-done();
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/workers/resources/connect-src-self.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698