|
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 |
|
8 |
|
9 http://username:password@hostname.com:80/pathname/./more/stuff/../path |
|
10 http,username:password,hostname.com,80,,/pathname/more/path |
|
11 |
|
12 username@host:8080/path |
|
13 ,username,host,8080,,/path |
|
14 |
|
15 http://gagan/ |
|
16 http,,gagan,-1,,/ |
|
17 |
|
18 scheme:host/netlib |
|
19 scheme,,host,-1,,/netlib |
|
20 |
|
21 mailbox:///foo |
|
22 mailbox,,,-1,,/foo |
|
23 |
|
24 scheme:user@hostname.edu:80/pathname |
|
25 scheme,user,hostname.edu,80,,/pathname |
|
26 |
|
27 http://username:password@hostname:80/pathname |
|
28 http,username:password,hostname,80,,/pathname |
|
29 |
|
30 resource:/pathname |
|
31 resource,,,-1,,/pathname |
|
32 |
|
33 ftp://uname%here.com:pwd@there.com/aPath/a.html |
|
34 ftp,uname%here.com:pwd,there.com,-1,,/aPath/a.html |
|
35 |
|
36 http://www.inf.bme.hu?foo=bar |
|
37 http,,www.inf.bme.hu,-1,foo=bar,/?foo=bar |
|
38 |
|
39 http://test.com/aPath/a.html#/1/2 |
|
40 http,,test.com,-1,,/aPath/a.html#/1/2 |
|
41 |
|
42 http://user:pass@ipaddres:2/get?foo/something |
|
43 http,user:pass,ipaddres,2,foo/something,/get?foo/something |