blob: 47cf988d432641b07dda1a66ee81506cf65865d6 [file] [log] [blame]
PASS breakDownURL('about:blank') is 'protocol=about:, pathname=blank, origin=null'
PASS breakDownURL('http://example.com/') is 'protocol=http:, host=example.com, pathname=/, origin=http://example.com'
PASS breakDownURL('http://@example.com/') is 'protocol=http:, host=example.com, pathname=/, origin=http://example.com, toString=http://example.com/'
PASS breakDownURL('http://a@example.com/') is 'protocol=http:, host=example.com, pathname=/, origin=http://example.com'
PASS breakDownURL('http://a:@example.com/') is 'protocol=http:, host=example.com, pathname=/, origin=http://example.com, toString=http://a@example.com/'
PASS breakDownURL('http://joebob1:abc123@example.com/') is 'protocol=http:, host=example.com, pathname=/, origin=http://example.com'
PASS breakDownURL('http://:def456@example.com/') is 'protocol=http:, host=example.com, pathname=/, origin=http://example.com'
PASS breakDownURL('http://example.com/foo/bar') is 'protocol=http:, host=example.com, pathname=/foo/bar, origin=http://example.com'
PASS breakDownURL('HTTP://example.com/foo/bar') is 'protocol=http:, host=example.com, pathname=/foo/bar, origin=http://example.com, toString=http://example.com/foo/bar'
PASS breakDownURL('https://example.com/ttt?ggg') is 'protocol=https:, host=example.com, pathname=/ttt, search=?ggg, origin=https://example.com'
PASS breakDownURL('ftp://example.com/ttt?ggg') is 'protocol=ftp:, host=example.com, pathname=/ttt, search=?ggg, origin=ftp://example.com'
PASS breakDownURL('file:///Users/darin') is 'protocol=file:, pathname=/Users/darin, origin=file://'
PASS breakDownURL('data:text/html,<b>foo</b>') is 'protocol=data:, pathname=text/html,<b>foo</b>, origin=null'
PASS breakDownURL('http://a:b@c:1/e/f?g%h') is 'protocol=http:, hostname=c, host=c:1, port=1, pathname=/e/f, search=?g%h, origin=http://c:1'
PASS breakDownURL('http://ex%61mple.com/') is 'protocol=http:, host=example.com, pathname=/, origin=http://example.com, toString=http://example.com/'
PASS breakDownURL('http://ex%2fmple.com/') is 'protocol=:, origin=null'
PASS successfullyParsed is true
TEST COMPLETE