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

Unified Diff: LayoutTests/http/tests/fetch/resources/fetch-test-helpers.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/resources/fetch-test-helpers.js
diff --git a/LayoutTests/http/tests/fetch/resources/fetch-test-helpers.js b/LayoutTests/http/tests/fetch/resources/fetch-test-helpers.js
index e513806c87eeae29729c6f9208f215258a980d6d..e03ae03acfa8288b02038401e75f6a61b1f388e3 100644
--- a/LayoutTests/http/tests/fetch/resources/fetch-test-helpers.js
+++ b/LayoutTests/http/tests/fetch/resources/fetch-test-helpers.js
@@ -182,6 +182,15 @@ var VALID_REASON_PHRASE = [
'', '0123456789', '404 Not Found', 'HTTP/1.1 404 Not Found', 'AZ\u00ffaz',
'x'.repeat(100000)];
+var INVALID_URLS =
+ ['http://',
+ 'https://',
+ 'http://ex%00ample.com',
+ 'http://ex%0dample.com',
+ 'http://ex%0aample.com',
+ 'http://ex%08ample.com',
+ 'http://ex\x00ample.com'];
+
function size(headers) {
var count = 0;
for (var header of headers) {

Powered by Google App Engine
This is Rietveld 408576698