Skip to content

Commit

Permalink
Upstream Node.js URL test data
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeecheung authored and domenic committed Feb 1, 2017
1 parent cb2e531 commit 8be8738
Showing 1 changed file with 180 additions and 0 deletions.
180 changes: 180 additions & 0 deletions url/urltestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5053,5 +5053,185 @@
"pathname": "//x/",
"search": "",
"hash": ""
},
{
"input": "tftp://foobar.com/someconfig;mode=netascii",
"base": "about:blank",
"href": "tftp://foobar.com/someconfig;mode=netascii",
"origin": "null",
"protocol": "tftp:",
"username": "",
"password": "",
"host": "foobar.com",
"hostname": "foobar.com",
"port": "",
"pathname": "/someconfig;mode=netascii",
"search": "",
"hash": ""
},
{
"input": "telnet://user:pass@foobar.com:23/",
"base": "about:blank",
"href": "telnet://user:pass@foobar.com:23/",
"origin": "null",
"protocol": "telnet:",
"username": "user",
"password": "pass",
"host": "foobar.com:23",
"hostname": "foobar.com",
"port": "23",
"pathname": "/",
"search": "",
"hash": ""
},
{
"input": "ut2004://10.10.10.10:7777/Index.ut2",
"base": "about:blank",
"href": "ut2004://10.10.10.10:7777/Index.ut2",
"origin": "null",
"protocol": "ut2004:",
"username": "",
"password": "",
"host": "10.10.10.10:7777",
"hostname": "10.10.10.10",
"port": "7777",
"pathname": "/Index.ut2",
"search": "",
"hash": ""
},
{
"input": "redis://foo:bar@somehost:6379/0?baz=bam&qux=baz",
"base": "about:blank",
"href": "redis://foo:bar@somehost:6379/0?baz=bam&qux=baz",
"origin": "null",
"protocol": "redis:",
"username": "foo",
"password": "bar",
"host": "somehost:6379",
"hostname": "somehost",
"port": "6379",
"pathname": "/0",
"search": "?baz=bam&qux=baz",
"hash": ""
},
{
"input": "rsync://foo@host:911/sup",
"base": "about:blank",
"href": "rsync://foo@host:911/sup",
"origin": "null",
"protocol": "rsync:",
"username": "foo",
"password": "",
"host": "host:911",
"hostname": "host",
"port": "911",
"pathname": "/sup",
"search": "",
"hash": ""
},
{
"input": "git://github.com/foo/bar.git",
"base": "about:blank",
"href": "git://github.com/foo/bar.git",
"origin": "null",
"protocol": "git:",
"username": "",
"password": "",
"host": "github.com",
"hostname": "github.com",
"port": "",
"pathname": "/foo/bar.git",
"search": "",
"hash": ""
},
{
"input": "irc://myserver.com:6999/channel?passwd",
"base": "about:blank",
"href": "irc://myserver.com:6999/channel?passwd",
"origin": "null",
"protocol": "irc:",
"username": "",
"password": "",
"host": "myserver.com:6999",
"hostname": "myserver.com",
"port": "6999",
"pathname": "/channel",
"search": "?passwd",
"hash": ""
},
{
"input": "dns://fw.example.org:9999/foo.bar.org?type=TXT",
"base": "about:blank",
"href": "dns://fw.example.org:9999/foo.bar.org?type=TXT",
"origin": "null",
"protocol": "dns:",
"username": "",
"password": "",
"host": "fw.example.org:9999",
"hostname": "fw.example.org",
"port": "9999",
"pathname": "/foo.bar.org",
"search": "?type=TXT",
"hash": ""
},
{
"input": "ldap://localhost:389/ou=People,o=JNDITutorial",
"base": "about:blank",
"href": "ldap://localhost:389/ou=People,o=JNDITutorial",
"origin": "null",
"protocol": "ldap:",
"username": "",
"password": "",
"host": "localhost:389",
"hostname": "localhost",
"port": "389",
"pathname": "/ou=People,o=JNDITutorial",
"search": "",
"hash": ""
},
{
"input": "git+https://github.com/foo/bar",
"base": "about:blank",
"href": "git+https://github.com/foo/bar",
"origin": "null",
"protocol": "git+https:",
"username": "",
"password": "",
"host": "github.com",
"hostname": "github.com",
"port": "",
"pathname": "/foo/bar",
"search": "",
"hash": ""
},
{
"input": "urn:ietf:rfc:2648",
"base": "about:blank",
"href": "urn:ietf:rfc:2648",
"origin": "null",
"protocol": "urn:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "ietf:rfc:2648",
"search": "",
"hash": ""
},
{
"input": "tag:joe@example.org,2001:foo/bar",
"base": "about:blank",
"href": "tag:joe@example.org,2001:foo/bar",
"origin": "null",
"protocol": "tag:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "joe@example.org,2001:foo/bar",
"search": "",
"hash": ""
}
]

0 comments on commit 8be8738

Please sign in to comment.