From 5ae94e10d50e76fdfc120863c198d3a3937000dc Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Wed, 10 May 2017 11:53:35 -0700 Subject: [PATCH] URL: test more whitespace stripping intricacies Cf. https://github.com/nodejs/node/issues/12825. --- url/urltestdata.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/url/urltestdata.json b/url/urltestdata.json index fe13d3f1edfc29..a910eaddaa63a0 100644 --- a/url/urltestdata.json +++ b/url/urltestdata.json @@ -3559,6 +3559,22 @@ "search": "", "hash": "" }, + "Leading and trailing C0 control or space", + { + "input": "\u0000\u001b\u0004\u0012 http://example.com/\u001f \u000d ", + "base": "about:blank", + "href": "http://example.com/", + "origin": "http://example.com", + "protocol": "http:", + "username": "", + "password": "", + "host": "example.com", + "hostname": "example.com", + "port": "", + "pathname": "/", + "search": "", + "hash": "" + }, "Ideographic full stop (full-width period for Chinese, etc.) should be treated as a dot. U+3002 is mapped to U+002E (dot)", { "input": "http://www.foo怂bar.com", @@ -5480,6 +5496,20 @@ "search": "", "hash": "" }, + { + "input": "C|\n/", + "base": "file://host/dir/file", + "href": "file:///C:/", + "protocol": "file:", + "username": "", + "password": "", + "host": "", + "hostname": "", + "port": "", + "pathname": "/C:/", + "search": "", + "hash": "" + }, { "input": "C|\\", "base": "file://host/dir/file",