forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pulls in new URL parsing tests from w3c web-platform-tests and updates null password handling. Refs: web-platform-tests/wpt@e001240 Refs: whatwg/url#186 PR-URL: nodejs#10601 Fixes: nodejs#10595 Reviewed-By: Michal Zasso <[email protected]> Reviewed-By: Italo A. Casas <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
- Loading branch information
1 parent
0df98bf
commit e858f6c
Showing
2 changed files
with
66 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,66 @@ | |
"search": "?b", | ||
"hash": "#c" | ||
}, | ||
{ | ||
"input": "https://test:@test", | ||
"base": "about:blank", | ||
"href": "https://test@test/", | ||
"origin": "https://test", | ||
"protocol": "https:", | ||
"username": "test", | ||
"password": "", | ||
"host": "test", | ||
"hostname": "test", | ||
"port": "", | ||
"pathname": "/", | ||
"search": "", | ||
"hash": "" | ||
}, | ||
{ | ||
"input": "https://:@test", | ||
"base": "about:blank", | ||
"href": "https://test/", | ||
"origin": "https://test", | ||
"protocol": "https:", | ||
"username": "", | ||
"password": "", | ||
"host": "test", | ||
"hostname": "test", | ||
"port": "", | ||
"pathname": "/", | ||
"search": "", | ||
"hash": "" | ||
}, | ||
{ | ||
"input": "non-special://test:@test/x", | ||
"base": "about:blank", | ||
"href": "non-special://test@test/x", | ||
"origin": "null", | ||
"protocol": "non-special:", | ||
"username": "test", | ||
"password": "", | ||
"host": "test", | ||
"hostname": "test", | ||
"port": "", | ||
"pathname": "/x", | ||
"search": "", | ||
"hash": "" | ||
}, | ||
{ | ||
"input": "non-special://:@test/x", | ||
"base": "about:blank", | ||
"href": "non-special://test/x", | ||
"origin": "null", | ||
"protocol": "non-special:", | ||
"username": "", | ||
"password": "", | ||
"host": "test", | ||
"hostname": "test", | ||
"port": "", | ||
"pathname": "/x", | ||
"search": "", | ||
"hash": "" | ||
}, | ||
{ | ||
"input": "http:foo.com", | ||
"base": "http://example.org/foo/bar", | ||
|
@@ -3098,7 +3158,7 @@ | |
{ | ||
"input": "http:a:@www.example.com", | ||
"base": "about:blank", | ||
"href": "http://a:@www.example.com/", | ||
"href": "http://[email protected]/", | ||
"origin": "http://www.example.com", | ||
"protocol": "http:", | ||
"username": "a", | ||
|
@@ -3113,7 +3173,7 @@ | |
{ | ||
"input": "http:/a:@www.example.com", | ||
"base": "about:blank", | ||
"href": "http://a:@www.example.com/", | ||
"href": "http://[email protected]/", | ||
"origin": "http://www.example.com", | ||
"protocol": "http:", | ||
"username": "a", | ||
|
@@ -3128,7 +3188,7 @@ | |
{ | ||
"input": "http://a:@www.example.com", | ||
"base": "about:blank", | ||
"href": "http://a:@www.example.com/", | ||
"href": "http://[email protected]/", | ||
"origin": "http://www.example.com", | ||
"protocol": "http:", | ||
"username": "a", | ||
|
@@ -3173,7 +3233,7 @@ | |
{ | ||
"input": "http://:@www.example.com", | ||
"base": "about:blank", | ||
"href": "http://:@www.example.com/", | ||
"href": "http://www.example.com/", | ||
"origin": "http://www.example.com", | ||
"protocol": "http:", | ||
"username": "", | ||
|