Backout a74bd5095902, Bug 959405 - Please update the Buri Moz-central, 1.3, 1.2 with...
[gecko.git] / netwerk / test / urltests.dat
blobd1f42fc76ad05221ec5eaa5e12fa8f3755495767
1 # Any blank lines and those beginning with # are comments and
2 # ignored. To add additional test cases that could potentially
3 # break URL parsing in mozilla add the input URL on a new line
4 # and follow it with the expected output. Then run urltest on
5 # this file and hopefully the expected output should match the
6 # one from the program.
7 # - Gagan Saksena 03/28/00
9 http://username:password@hostname.com:80/pathname/./more/stuff/../path
10 http,username:password,hostname.com,80,,/pathname/more/path
12 username@host:8080/path
13 ,username,host,8080,,/path
15 http://gagan/
16 http,,gagan,-1,,/
18 scheme:host/netlib
19 scheme,,host,-1,,/netlib
21 mailbox:///foo
22 mailbox,,,-1,,/foo
24 scheme:user@hostname.edu:80/pathname
25 scheme,user,hostname.edu,80,,/pathname
27 http://username:password@hostname:80/pathname
28 http,username:password,hostname,80,,/pathname
30 resource:/pathname
31 resource,,,-1,,/pathname
33 ftp://uname%here.com:pwd@there.com/aPath/a.html
34 ftp,uname%here.com:pwd,there.com,-1,,/aPath/a.html
36 http://www.inf.bme.hu?foo=bar
37 http,,www.inf.bme.hu,-1,foo=bar,/?foo=bar
39 http://test.com/aPath/a.html#/1/2
40 http,,test.com,-1,,/aPath/a.html#/1/2
42 http://user:pass@ipaddres:2/get?foo/something
43 http,user:pass,ipaddres,2,foo/something,/get?foo/something