netwerk/test/urltests.dat

Wed, 31 Dec 2014 06:55:46 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:46 +0100
changeset 1
ca08bd8f51b2
permissions
-rw-r--r--

Added tag TORBROWSER_REPLICA for changeset 6474c204b198

     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

mercurial