chromium/third_party/blink/web_tests/fast/url/standard-url-expected.txt

Canonicalization of standard URLs

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

PASS canonicalize('http://www.google.com/foo?bar=baz#') is 'http://www.google.com/foo?bar=baz#'
PASS canonicalize('http://www.google.com/foo?bar=baz# »') is 'http://www.google.com/foo?bar=baz#%20%C2%BB'
PASS canonicalize('http://[www.google.com]/') is 'http://[www.google.com]/'
PASS canonicalize('http://www.google.com') is 'http://www.google.com/'
PASS canonicalize('ht	tp:@www.google.com:80/;p?#') is 'http://www.google.com/;p?#'
PASS canonicalize('http:////////user:@google.com:99?foo') is 'http://[email protected]:99/?foo'
PASS canonicalize('www.google.com') is 'file:///www.google.com'
PASS canonicalize('http://192.0x00A80001') is 'http://192.168.0.1/'
PASS canonicalize('http://www/foo%2Ehtml') is 'http://www/foo.html'
PASS canonicalize('http://user:pass@/') is 'http://user:pass@/'
PASS canonicalize('http://%25DOMAIN:[email protected]/') is 'http://%25DOMAIN:[email protected]/'
PASS canonicalize('http:\\\\www.google.com\\foo') is 'http://www.google.com/foo'
PASS canonicalize('http://www.google.com/asdf#\ud800') is 'http://www.google.com/asdf#%EF%BF%BD'
PASS canonicalize('http://foo:80/') is 'http://foo/'
PASS canonicalize('http://foo:81/') is 'http://foo:81/'
PASS canonicalize('httpa://foo:80/') is 'httpa://foo:80/'
PASS canonicalize('http://foo:-80/') is 'http://foo:-80/'
PASS canonicalize('https://foo:443/') is 'https://foo/'
PASS canonicalize('https://foo:80/') is 'https://foo:80/'
PASS canonicalize('ftp://foo:21/') is 'ftp://foo/'
PASS canonicalize('ftp://foo:80/') is 'ftp://foo:80/'
FAIL canonicalize('gopher://foo:70/') should be gopher://foo/. Was gopher://foo:70/.
PASS canonicalize('gopher://foo:443/') is 'gopher://foo:443/'
PASS canonicalize('ws://foo:80/') is 'ws://foo/'
PASS canonicalize('ws://foo:81/') is 'ws://foo:81/'
PASS canonicalize('ws://foo:443/') is 'ws://foo:443/'
PASS canonicalize('ws://foo:815/') is 'ws://foo:815/'
PASS canonicalize('wss://foo:80/') is 'wss://foo:80/'
PASS canonicalize('wss://foo:81/') is 'wss://foo:81/'
PASS canonicalize('wss://foo:443/') is 'wss://foo/'
PASS canonicalize('wss://foo:815/') is 'wss://foo:815/'
PASS canonicalize('http:/example.com/') is 'http://example.com/'
PASS canonicalize('ftp:/example.com/') is 'ftp://example.com/'
PASS canonicalize('https:/example.com/') is 'https://example.com/'
PASS canonicalize('madeupscheme:/example.com/') is 'madeupscheme:/example.com/'
PASS canonicalize('file:/example.com/') is 'file:///example.com/'
PASS canonicalize('ftps:/example.com/') is 'ftps:/example.com/'
FAIL canonicalize('gopher:/example.com/') should be gopher://example.com/. Was gopher:/example.com/.
PASS canonicalize('ws:/example.com/') is 'ws://example.com/'
PASS canonicalize('wss:/example.com/') is 'wss://example.com/'
PASS canonicalize('data:/example.com/') is 'data:/example.com/'
PASS canonicalize('javascript:/example.com/') is 'javascript:/example.com/'
PASS canonicalize('mailto:/example.com/') is 'mailto:/example.com/'
PASS canonicalize('http:example.com/') is 'http://example.com/'
PASS canonicalize('ftp:example.com/') is 'ftp://example.com/'
PASS canonicalize('https:example.com/') is 'https://example.com/'
PASS canonicalize('madeupscheme:example.com/') is 'madeupscheme:example.com/'
PASS canonicalize('ftps:example.com/') is 'ftps:example.com/'
FAIL canonicalize('gopher:example.com/') should be gopher://example.com/. Was gopher:example.com/.
PASS canonicalize('ws:example.com/') is 'ws://example.com/'
PASS canonicalize('wss:example.com/') is 'wss://example.com/'
PASS canonicalize('data:example.com/') is 'data:example.com/'
PASS canonicalize('javascript:example.com/') is 'javascript:example.com/'
PASS canonicalize('mailto:example.com/') is 'mailto:example.com/'
PASS canonicalize('javascript:alert(\t 1 \n\r)') is 'javascript:alert( 1 )'
PASS canonicalize('javascript:alert("  β ")') is 'javascript:alert(" %01 %CE%B2 ")'
PASS successfullyParsed is true

TEST COMPLETE