blob: d08dd8f77b59070075606bf03432dbfdc8cba5e9 [file] [log] [blame]
Test URLs that have a port number.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL canonicalize('http://www.example.com:as df/') should be http://www.example.com:as%20df/. Was http://www.example.com:as df/.
PASS canonicalize('http://www.example.com:-2/') is 'http://www.example.com:-2/'
PASS canonicalize('http://www.example.com:80/') is 'http://www.example.com/'
PASS canonicalize('http://www.example.com:8080/') is 'http://www.example.com:8080/'
PASS canonicalize('http://www.example.com:/') is 'http://www.example.com/'
FAIL canonicalize('http://www.example.com:፩/') should be http://www.example.com:%E1%8D%A9/. Was http://www.example.com:፩/.
FAIL canonicalize('http://www.example.com:𝟖/') should be http://www.example.com:%F0%9D%9F%96/. Was http://www.example.com:𝟖/.
PASS canonicalize('foobar://www.example.com:80/') is 'foobar://www.example.com:80/'
PASS successfullyParsed is true
TEST COMPLETE