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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/script-src-unsafe-dynamic-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/script-src-unsafe-dynamic-expected.txt
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/script-src-unsafe-dynamic-expected.txt b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/script-src-unsafe-dynamic-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c57f99d5f499a40694fa6470435e671779b17cef
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/script-src-unsafe-dynamic-expected.txt
@@ -0,0 +1,27 @@
+CONSOLE ERROR: Refused to load the script 'http://localhost:8000/security/contentSecurityPolicy/resources/loaded.js?write' because it violates the following Content Security Policy directive: "script-src 'nonce-abcdefg' 'unsafe-dynamic'". 'unsafe-dynamic' is present, so host-based whitelisting is disabled.
+
+CONSOLE ERROR: Refused to load the script 'http://localhost:8000/security/contentSecurityPolicy/resources/loaded.js?write-defer' because it violates the following Content Security Policy directive: "script-src 'nonce-abcdefg' 'unsafe-dynamic'". 'unsafe-dynamic' is present, so host-based whitelisting is disabled.
+
+CONSOLE ERROR: Refused to load the script 'http://localhost:8000/security/contentSecurityPolicy/resources/loaded.js?write-async' because it violates the following Content Security Policy directive: "script-src 'nonce-abcdefg' 'unsafe-dynamic'". 'unsafe-dynamic' is present, so host-based whitelisting is disabled.
+
+CONSOLE ERROR: Refused to load the script 'http://localhost:8000/security/contentSecurityPolicy/resources/loaded.js?write' because it violates the following Content Security Policy directive: "script-src 'nonce-abcdefg' 'unsafe-dynamic'". 'unsafe-dynamic' is present, so host-based whitelisting is disabled.
+
+CONSOLE ERROR: Refused to load the script 'http://localhost:8000/security/contentSecurityPolicy/resources/loaded.js?defer-write-defer' because it violates the following Content Security Policy directive: "script-src 'nonce-abcdefg' 'unsafe-dynamic'". 'unsafe-dynamic' is present, so host-based whitelisting is disabled.
+
+CONSOLE ERROR: Refused to load the script 'http://localhost:8000/security/contentSecurityPolicy/resources/loaded.js?defer-write-async' because it violates the following Content Security Policy directive: "script-src 'nonce-abcdefg' 'unsafe-dynamic'". 'unsafe-dynamic' is present, so host-based whitelisting is disabled.
+
+This is a testharness.js-based test.
+PASS Script injected via 'appendChild' is allowed with 'unsafe-dynamic'.
+PASS Async script injected via 'appendChild' is allowed with 'unsafe-dynamic'.
+PASS Deferred script injected via 'appendChild' is allowed with 'unsafe-dynamic'.
+PASS Script injected via 'document.write' is not allowed with 'unsafe-dynamic'.
+PASS Deferred script injected via 'document.write' is not allowed with 'unsafe-dynamic'.
+PASS Async script injected via 'document.write' is not allowed with 'unsafe-dynamic'.
+PASS Script injected via deferred 'appendChild' is allowed with 'unsafe-dynamic'.
+PASS Async script injected via deferred 'appendChild' is allowed with 'unsafe-dynamic'.
+PASS Deferred script injected via deferred 'appendChild' is allowed with 'unsafe-dynamic'.
+PASS Script injected via deferred 'document.write' is not allowed with 'unsafe-dynamic'.
+PASS Deferred script injected via deferred 'document.write' is not allowed with 'unsafe-dynamic'.
+PASS Async script injected via deferred 'document.write' is not allowed with 'unsafe-dynamic'.
+Harness: the test ran to completion.
+

Powered by Google App Engine
This is Rietveld 408576698