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

Unified Diff: LayoutTests/http/tests/fetch/resources/fetch-test-helpers.js

Issue 1288263003: Normalize and update the header value checks to RFC 7230 for Fetch Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/fetch/script-tests/headers.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9bbad4f4019af08228b58b2543d4d38c8366579c..e6ff21a459ec8d949f8bb0dc36259ed2082b1142 100644
--- a/LayoutTests/http/tests/fetch/resources/fetch-test-helpers.js
+++ b/LayoutTests/http/tests/fetch/resources/fetch-test-helpers.js
@@ -79,9 +79,12 @@ var VALID_TOKENS = FORBIDDEN_METHODS
var INVALID_HEADER_NAMES = INVALID_TOKENS;
var INVALID_HEADER_VALUES = [
'test \r data', 'test \n data', 'test \0 data',
- 'test\r\n data',
- 'test\r', 'test\n', 'test\r\n', 'test\0',
- '\0'.repeat(100000), '\r\n'.repeat(50000), 'x'.repeat(100000) + '\0'];
+ 'test\r\n data', 'test\0', 't\bt', 't\vt',
+ '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07', '\x08',
+ '\x0b', '\x0c', '\x0e', '\x0f',
+ '\x10', '\x11', '\x12', '\x13', '\x14', '\x15', '\x16', '\x17',
+ '\x18', '\x19', '\x1a', '\x1b', '\x1c', '\x1d', '\x1e', '\x1f', '\x7f',
+ '\0'.repeat(100000), '\u3042', 'x'.repeat(100000) + '\0'];
var FORBIDDEN_HEADER_NAMES =
['Accept-Charset', 'Accept-Encoding', 'Access-Control-Request-Headers',
« no previous file with comments | « no previous file | LayoutTests/http/tests/fetch/script-tests/headers.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698