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

Unified Diff: LayoutTests/http/tests/fetch/script-tests/headers-guard.js

Issue 1098473003: Implement redirect() API for Fetch Response (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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: LayoutTests/http/tests/fetch/script-tests/headers-guard.js
diff --git a/LayoutTests/http/tests/fetch/script-tests/headers-guard.js b/LayoutTests/http/tests/fetch/script-tests/headers-guard.js
index 00ce90bed40ecc69756ccfb6ec9a639c55736d9b..8cee05417a0810be970a24ef5decca96e5f4bd10 100644
--- a/LayoutTests/http/tests/fetch/script-tests/headers-guard.js
+++ b/LayoutTests/http/tests/fetch/script-tests/headers-guard.js
@@ -368,7 +368,10 @@ promise_test(function(t) {
[res.headers,
res.clone().headers,
Response.error().headers,
- Response.error().clone().headers].forEach(function(headers) {
+ Response.error().clone().headers,
+ Response.redirect('https://www.example.com/test.html').headers,
+ Response.redirect('https://www.example.com/test.html').clone().headers
+ ].forEach(function(headers) {
testInvalidNamesAndValues(headers);
// Test that TypeError is thrown for all header names.

Powered by Google App Engine
This is Rietveld 408576698