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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worker-eval-blocked-expected.txt

Issue 1885703003: Make testharness.js tests fail on uncaught exceptions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Recover script changes Created 4 years, 8 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-eval-blocked-expected.txt
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worker-eval-blocked-expected.txt b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worker-eval-blocked-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e16464764c8c96bf9068986acede6d8b35441de8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worker-eval-blocked-expected.txt
@@ -0,0 +1,13 @@
+CONSOLE ERROR: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
+
+CONSOLE ERROR: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src 'self'". Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.
+
+This is a testharness.js-based test.
+PASS eval blocked for 'script-src%20'none''
+PASS eval blocked for 'default-src%20'none''
+PASS `eval()` with 'script-src 'self'' blocked
+PASS `eval()` with 'default-src 'self'' blocked
+PASS `eval()` with 'script-src 'self' 'unsafe-eval'' allowed
+PASS `eval()` with 'default-src 'self' 'unsafe-eval'' allowed
+Harness: the test ran to completion.
+

Powered by Google App Engine
This is Rietveld 408576698