netwerk/test/urltests.dat

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/test/urltests.dat	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +# Any blank lines and those beginning with # are comments and 
     1.5 +# ignored. To add additional test cases that could potentially 
     1.6 +# break URL parsing in mozilla add the input URL on a new line 
     1.7 +# and follow it with the expected output. Then run urltest on 
     1.8 +# this file and hopefully the expected output should match the 
     1.9 +# one from the program. 
    1.10 +#   - Gagan Saksena 03/28/00
    1.11 +
    1.12 +http://username:password@hostname.com:80/pathname/./more/stuff/../path
    1.13 +http,username:password,hostname.com,80,,/pathname/more/path
    1.14 +
    1.15 +username@host:8080/path
    1.16 +,username,host,8080,,/path
    1.17 +
    1.18 +http://gagan/
    1.19 +http,,gagan,-1,,/
    1.20 +
    1.21 +scheme:host/netlib
    1.22 +scheme,,host,-1,,/netlib
    1.23 +
    1.24 +mailbox:///foo
    1.25 +mailbox,,,-1,,/foo
    1.26 +
    1.27 +scheme:user@hostname.edu:80/pathname
    1.28 +scheme,user,hostname.edu,80,,/pathname
    1.29 +
    1.30 +http://username:password@hostname:80/pathname
    1.31 +http,username:password,hostname,80,,/pathname
    1.32 +
    1.33 +resource:/pathname
    1.34 +resource,,,-1,,/pathname
    1.35 +
    1.36 +ftp://uname%here.com:pwd@there.com/aPath/a.html
    1.37 +ftp,uname%here.com:pwd,there.com,-1,,/aPath/a.html
    1.38 +
    1.39 +http://www.inf.bme.hu?foo=bar
    1.40 +http,,www.inf.bme.hu,-1,foo=bar,/?foo=bar
    1.41 +
    1.42 +http://test.com/aPath/a.html#/1/2
    1.43 +http,,test.com,-1,,/aPath/a.html#/1/2
    1.44 +
    1.45 +http://user:pass@ipaddres:2/get?foo/something
    1.46 +http,user:pass,ipaddres,2,foo/something,/get?foo/something

mercurial