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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentTypeOptions/block-image-as-script-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/contentTypeOptions/block-image-as-script-expected.txt
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentTypeOptions/block-image-as-script-expected.txt b/third_party/WebKit/LayoutTests/http/tests/security/contentTypeOptions/block-image-as-script-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e52a15136d29983420d457b520723c7fdd19ebc8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentTypeOptions/block-image-as-script-expected.txt
@@ -0,0 +1,9 @@
+CONSOLE ERROR: Refused to execute script from 'http://127.0.0.1:8000/security/contentTypeOptions/resources/script-with-header.pl?mime=image/gif&options=invalid' because its MIME type ('image/gif') is not executable.
+CONSOLE ERROR: Refused to execute script from 'http://127.0.0.1:8000/security/contentTypeOptions/resources/script-with-header.pl?mime=image/jpeg&options=invalid' because its MIME type ('image/jpeg') is not executable.
+CONSOLE ERROR: Refused to execute script from 'http://127.0.0.1:8000/security/contentTypeOptions/resources/script-with-header.pl?mime=IMAGE/PNG&options=invalid' because its MIME type ('image/png') is not executable.
+CONSOLE ERROR: Refused to execute script from 'http://127.0.0.1:8000/security/contentTypeOptions/resources/script-with-header.pl?mime=image/x-icon&options=invalid' because its MIME type ('image/x-icon') is not executable.
+CONSOLE ERROR: Refused to execute script from 'http://127.0.0.1:8000/security/contentTypeOptions/resources/script-with-header.pl?mime=image/svg+xml&options=invalid' because its MIME type ('image/svgxml') is not executable.
+This is a testharness.js-based test.
+PASS All image/* scripts should be blocked.
+Harness: the test ran to completion.
+

Powered by Google App Engine
This is Rietveld 408576698