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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worker-importscripts-blocked.html

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
Index: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worker-importscripts-blocked.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worker-importscripts-blocked.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worker-importscripts-blocked.html
deleted file mode 100644
index 493d79d8a482ab65efcc8db96f635882f29f6377..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worker-importscripts-blocked.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-eval' 'unsafe-inline' 127.0.0.1:8000"/>
-<script src="/js-test-resources/js-test.js"></script>
-</head>
-<body>
-<script>
- window.jsTestIsAsync = true;
- window.wasPostTestScriptParsed = true;
-
- var result = '';
- try {
- var worker = new Worker('http://127.0.0.1:8000/security/contentSecurityPolicy/resources/worker.php?type=importscripts&csp=' +
- encodeURIComponent("script-src 'unsafe-eval' 'unsafe-inline' 127.0.0.1:8000"));
- worker.onmessage = function (event) {
- result = event.data;
- shouldBeEqualToString('result', 'importScripts blocked: NetworkError: Failed to execute \'importScripts\' on \'WorkerGlobalScope\': The script at \'http://localhost:8000/security/contentSecurityPolicy/resources/post-message.js\' failed to load.');
- finishJSTest();
- };
- } catch (e) {
- result = e;
- shouldBeEqualToString('result', 'importScripts blocked');
- finishJSTest();
- }
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698