Wed, 31 Dec 2014 06:55:46 +0100
Added tag TORBROWSER_REPLICA for changeset 6474c204b198
michael@0 | 1 | # Any blank lines and those beginning with # are comments and |
michael@0 | 2 | # ignored. To add additional test cases that could potentially |
michael@0 | 3 | # break URL parsing in mozilla add the input URL on a new line |
michael@0 | 4 | # and follow it with the expected output for the standard URL |
michael@0 | 5 | # parser and one line for the case when the URL is really |
michael@0 | 6 | # created. Then run urltest with the -std option and without it |
michael@0 | 7 | # on this file and hopefully the expected output should match |
michael@0 | 8 | # the one from the program. |
michael@0 | 9 | # - Gagan Saksena 03/28/00 |
michael@0 | 10 | # |
michael@0 | 11 | |
michael@0 | 12 | http://username:password@hostname.com:80/pathname/./more/stuff/../path |
michael@0 | 13 | http,username,password,hostname.com,80,/pathname/more/,path,,,,,http://username:password@hostname.com:80/pathname/more/path |
michael@0 | 14 | http,username,password,hostname.com,80,/pathname/more/,path,,,,,http://username:password@hostname.com/pathname/more/path |
michael@0 | 15 | |
michael@0 | 16 | username@host:8080/path |
michael@0 | 17 | ,username,,host,8080,/,path,,,,,username@host:8080/path |
michael@0 | 18 | Can not create URL |
michael@0 | 19 | |
michael@0 | 20 | http://gagan/ |
michael@0 | 21 | http,,,gagan,-1,/,,,,,,http://gagan/ |
michael@0 | 22 | http,,,gagan,-1,/,,,,,,http://gagan/ |
michael@0 | 23 | |
michael@0 | 24 | scheme:host/netlib |
michael@0 | 25 | scheme,,,host,-1,/,netlib,,,,,scheme://host/netlib |
michael@0 | 26 | Can not create URL |
michael@0 | 27 | |
michael@0 | 28 | mailbox:///foo |
michael@0 | 29 | mailbox,,,,-1,/,foo,,,,,mailbox:///foo |
michael@0 | 30 | mailbox,,,,-1,/,foo,,,,,mailbox:///foo |
michael@0 | 31 | |
michael@0 | 32 | scheme:user@hostname.edu:80/pathname |
michael@0 | 33 | scheme,user,,hostname.edu,80,/,pathname,,,,,scheme://user@hostname.edu:80/pathname |
michael@0 | 34 | Can not create URL |
michael@0 | 35 | |
michael@0 | 36 | http://username:password@hostname:80/pathname |
michael@0 | 37 | http,username,password,hostname,80,/,pathname,,,,,http://username:password@hostname:80/pathname |
michael@0 | 38 | http,username,password,hostname,80,/,pathname,,,,,http://username:password@hostname/pathname |
michael@0 | 39 | |
michael@0 | 40 | http://username:password@hostname:8080/path/filebasename.fileextension;param?query#ref |
michael@0 | 41 | http,username,password,hostname,8080,/path/,filebasename,fileextension,param,query,ref,http://username:password@hostname:8080/path/filebasename.fileextension;param?query#ref |
michael@0 | 42 | http,username,password,hostname,8080,/path/,filebasename,fileextension,param,query,ref,http://username:password@hostname:8080/path/filebasename.fileextension;param?query#ref |
michael@0 | 43 | |
michael@0 | 44 | resource:/pathname |
michael@0 | 45 | resource,,,,-1,/,pathname,,,,,resource:///pathname |
michael@0 | 46 | resource,,,,-1,/,pathname,,,,,resource:///pathname |
michael@0 | 47 | |
michael@0 | 48 | ftp://uname%here.com:pwd@there.com/aPath/a.html |
michael@0 | 49 | ftp,uname%here.com,pwd,there.com,-1,/aPath/,a,html,,,,ftp://uname%here.com:pwd@there.com/aPath/a.html |
michael@0 | 50 | ftp,uname%here.com,pwd,there.com,-1,/aPath/,a,html,,,,ftp://uname%here.com:pwd@there.com/aPath/a.html |
michael@0 | 51 | |
michael@0 | 52 | http://www.inf.bme.hu?foo=bar |
michael@0 | 53 | http,,,www.inf.bme.hu,-1,/,,,,foo=bar,,http://www.inf.bme.hu/?foo=bar |
michael@0 | 54 | http,,,www.inf.bme.hu,-1,/,,,,foo=bar,,http://www.inf.bme.hu/?foo=bar |
michael@0 | 55 | |
michael@0 | 56 | http://test.com/aPath/a.html#/1/2 |
michael@0 | 57 | http,,,test.com,-1,/aPath/,a,html,,,/1/2,http://test.com/aPath/a.html#/1/2 |
michael@0 | 58 | http,,,test.com,-1,/aPath/,a,html,,,/1/2,http://test.com/aPath/a.html#/1/2 |
michael@0 | 59 | |
michael@0 | 60 | http://user:pass@ipaddres:2/get?foo/something |
michael@0 | 61 | http,user,pass,ipaddres,2,/,get,,,foo/something,,http://user:pass@ipaddres:2/get?foo/something |
michael@0 | 62 | http,user,pass,ipaddres,2,/,get,,,foo/something,,http://user:pass@ipaddres:2/get?foo/something |
michael@0 | 63 | |
michael@0 | 64 | # testing different versions of http urls |
michael@0 | 65 | http:www.mozilla.org |
michael@0 | 66 | http,,,www.mozilla.org,-1,/,,,,,,http://www.mozilla.org/ |
michael@0 | 67 | http,,,www.mozilla.org,-1,/,,,,,,http://www.mozilla.org/ |
michael@0 | 68 | |
michael@0 | 69 | http:/www.mozilla.org |
michael@0 | 70 | http,,,,-1,/,www.mozilla,org,,,,http:///www.mozilla.org |
michael@0 | 71 | http,,,www.mozilla.org,-1,/,,,,,,http://www.mozilla.org/ |
michael@0 | 72 | |
michael@0 | 73 | # testing cap letters (23927) |
michael@0 | 74 | HtTp://wWw.mozilLa.org |
michael@0 | 75 | http,,,www.mozilla.org,-1,/,,,,,,http://www.mozilla.org/ |
michael@0 | 76 | http,,,www.mozilla.org,-1,/,,,,,,http://www.mozilla.org/ |
michael@0 | 77 | |
michael@0 | 78 | # testing spaces (15150) |
michael@0 | 79 | go.com.au?mozilla bug reports |
michael@0 | 80 | ,,,go.com.au,-1,/,,,,mozilla%20bug%20reports,,go.com.au/?mozilla%20bug%20reports |
michael@0 | 81 | Can not create URL |
michael@0 | 82 | |
michael@0 | 83 | http://go.com.au?mozilla bug reports |
michael@0 | 84 | http,,,go.com.au,-1,/,,,,mozilla%20bug%20reports,,http://go.com.au/?mozilla%20bug%20reports |
michael@0 | 85 | http,,,go.com.au,-1,/,,,,mozilla%20bug%20reports,,http://go.com.au/?mozilla%20bug%20reports |
michael@0 | 86 | |
michael@0 | 87 | # testing for multiple params (14801) |
michael@0 | 88 | http://ad.doubleclick.net/ad/cbsmw.button.com/SIDEBAR_BUTTONS;sz=88x31;kw=DBCC;tile=4;ord=1864641213378545414 |
michael@0 | 89 | http,,,ad.doubleclick.net,-1,/ad/cbsmw.button.com/,SIDEBAR_BUTTONS,,sz=88x31;kw=DBCC;tile=4;ord=1864641213378545414,,,http://ad.doubleclick.net/ad/cbsmw.button.com/SIDEBAR_BUTTONS;sz=88x31;kw=DBCC;tile=4;ord=1864641213378545414 |
michael@0 | 90 | http,,,ad.doubleclick.net,-1,/ad/cbsmw.button.com/,SIDEBAR_BUTTONS,,sz=88x31;kw=DBCC;tile=4;ord=1864641213378545414,,,http://ad.doubleclick.net/ad/cbsmw.button.com/SIDEBAR_BUTTONS;sz=88x31;kw=DBCC;tile=4;ord=1864641213378545414 |
michael@0 | 91 | |
michael@0 | 92 | fxqn:/us/va/reston/cnri/ietf/24/asdf%*.fred |
michael@0 | 93 | fxqn,,,,-1,/us/va/reston/cnri/ietf/24/,asdf%*,fred,,,,fxqn:///us/va/reston/cnri/ietf/24/asdf%*.fred |
michael@0 | 94 | Can not create URL |
michael@0 | 95 | |
michael@0 | 96 | news:3B5C133C.2080505@foobar.net |
michael@0 | 97 | news,3B5C133C.2080505,,foobar.net,-1,/,,,,,,news://3B5C133C.2080505@foobar.net/ |
michael@0 | 98 | news,3B5C133C.2080505,,foobar.net,-1,/,,,,,,news://3B5C133C.2080505@foobar.net/ |
michael@0 | 99 | |
michael@0 | 100 | http://host/path/%2E%2E/file%2Ehtml |
michael@0 | 101 | http,,,host,-1,/,file%2Ehtml,,,,,http://host/file%2Ehtml |
michael@0 | 102 | http,,,host,-1,/,file%2Ehtml,,,,,http://host/file%2Ehtml |
michael@0 | 103 |