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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cors-fetch-preflight-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/suborigins/crossorigin/suborigin-cors-fetch-preflight-expected.txt
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cors-fetch-preflight-expected.txt b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cors-fetch-preflight-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e9aad1c396b163b879e46140e4de4b160b9a086d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cors-fetch-preflight-expected.txt
@@ -0,0 +1,16 @@
+CONSOLE ERROR: Fetch API cannot load http://127.0.0.1:8000/security/resources/cors-script.php?cors=http://foobar_127.0.0.1:8000. Request header field x-custom-header is not allowed by Access-Control-Allow-Headers in preflight response.
+CONSOLE ERROR: Fetch API cannot load http://127.0.0.1:8000/security/resources/cors-script.php?cors=*. Request header field x-custom-header is not allowed by Access-Control-Allow-Headers in preflight response.
+CONSOLE ERROR: Fetch API cannot load http://127.0.0.1:8000/security/resources/cors-script.php?cors=http://foobar_127.0.0.1:8000&credentials=true. Request header field x-custom-header is not allowed by Access-Control-Allow-Headers in preflight response.
+CONSOLE ERROR: Fetch API cannot load http://127.0.0.1:8000/security/resources/cors-script.php?cors=*&credentials=true. Response to preflight request doesn't pass access control check: A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'http://foobar_127.0.0.1:8000' is therefore not allowed access.
+CONSOLE ERROR: Fetch API cannot load http://127.0.0.1:8000/security/resources/cors-script.php?cors=*&credentials=true&custom=x-custom-header. Response to preflight request doesn't pass access control check: A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'http://foobar_127.0.0.1:8000' is therefore not allowed access.
+This is a testharness.js-based test.
+PASS Fetch: Complex anonymous Fetch preflight, no AC for custom header
+PASS Fetch: Complex anonymous Fetch preflight, has AC for custom header
+PASS Fetch: Complex anonymous Fetch preflight with '*' ACAO, no AC for custom header
+PASS Fetch: Complex anonymous Fetch preflight with '*' ACAO, has AC for custom header
+PASS Fetch: Complex Fetch with credentials preflight, no AC for custom header
+PASS Fetch: Complex Fetch with credentials preflight, has AC for custom header
+PASS Fetch: Complex Fetch with credentials preflight with '*' ACAO, no AC for custom header
+PASS Fetch: Complex Fetch with credentials preflight with '*' ACAO, has AC for custom header
+Harness: the test ran to completion.
+

Powered by Google App Engine
This is Rietveld 408576698