Harness status: OK Found 267 tests 267 Pass Pass Loading data… Pass URL: Setting .protocol = '' The empty string is not a valid scheme. Setter leaves the URL unchanged. Pass URL: Setting .protocol = 'b' Pass URL: Setting .protocol = 'defuse' Pass URL: Setting .protocol = 'B' Upper-case ASCII is lower-cased Pass URL: Setting .protocol = 'é' Non-ASCII is rejected Pass URL: Setting .protocol = '0b' No leading digit Pass URL: Setting .protocol = '+b' No leading punctuation Pass URL: Setting .protocol = 'bC0+-.' Pass URL: Setting .protocol = 'b,c' Only some punctuation is acceptable Pass URL: Setting .protocol = 'bé' Non-ASCII is rejected Pass URL: Setting .protocol = 'file' Can’t switch from URL containing username/password/port to file Pass URL: Setting .protocol = 'file' Pass URL: Setting .protocol = 'file' Pass URL: Setting .protocol = 'http' Can’t switch from file URL with no host Pass URL: Setting .protocol = 'https' Pass URL: Setting .protocol = 'wss' Pass URL: Setting .protocol = 'b' Can’t switch from special scheme to non-special Pass URL: Setting .protocol = 's' Pass URL: Setting .protocol = 's' Pass URL: Setting .protocol = 'test' Pass URL: Setting .protocol = 'http' Cannot-be-a-base URL doesn’t have a host, but URL in a special scheme must. Pass URL: Setting .protocol = 'http' Can’t switch from non-special scheme to special Pass URL: Setting .protocol = 'https' Pass URL: Setting .protocol = 'file' Pass URL: Setting .protocol = 'file' Pass URL: Setting .protocol = 'https' Pass URL: Setting .protocol = 'https:foo : bar' Stuff after the first ':' is ignored Pass URL: Setting Test>.protocol = 'view-source+data:foo : bar' Stuff after the first ':' is ignored Pass URL: Setting .protocol = 'https' Port is set to null if it is the default for new scheme. Pass URL: Setting .protocol = 'h tt ps' Tab and newline are stripped Pass URL: Setting .protocol = 'https ' Pass URL: Setting .protocol = 'https' Non-tab/newline C0 controls result in no-op Pass URL: Setting .protocol = 'https ' Pass URL: Setting .protocol = 'https' Pass URL: Setting .protocol = 'https ' Pass URL: Setting .username = 'me' No host means no username Pass URL: Setting .username = 'me' No host means no username Pass URL: Setting .username = 'me' Cannot-be-a-base means no username Pass URL: Setting .username = 'wario' Pass URL: Setting .username = 'me' Pass URL: Setting .username = 'me' Pass URL: Setting .username = '' Pass URL: Setting .username = '' Pass URL: Setting .username = '  !"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~€Éé' UTF-8 percent encoding with the userinfo encode set. Pass URL: Setting .username = '%c3%89té' Bytes already percent-encoded are left as-is. Pass URL: Setting .username = 'x' Pass URL: Setting .username = 'wario' Pass URL: Setting .username = 'test' Pass URL: Setting .password = 'secret' No host means no password Pass URL: Setting .password = 'secret' No host means no password Pass URL: Setting .password = 'secret' Cannot-be-a-base means no password Pass URL: Setting .password = 'secret' Pass URL: Setting .password = 'secret' Pass URL: Setting .password = '' Pass URL: Setting .password = '' Pass URL: Setting .password = '  !"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~€Éé' UTF-8 percent encoding with the userinfo encode set. Pass URL: Setting .password = '%c3%89té' Bytes already percent-encoded are left as-is. Pass URL: Setting .password = 'x' Pass URL: Setting .password = 'bowser' Pass URL: Setting .password = 'test' Pass URL: Setting .host = '' Non-special scheme Pass URL: Setting .host = ' ' Pass URL: Setting .host = ' ' Pass URL: Setting .host = ' ' Pass URL: Setting .host = ' ' Pass URL: Setting .host = '#' Pass URL: Setting .host = '/' Pass URL: Setting .host = '?' Pass URL: Setting .host = '@' Pass URL: Setting .host = 'ß' Pass URL: Setting .host = 'ß' IDNA Nontransitional_Processing Pass URL: Setting .host = 'example.com' Cannot-be-a-base means no host Pass URL: Setting .host = 'example.net' Cannot-be-a-base means no host Pass URL: Setting .host = 'example.com:8080' Pass URL: Setting .host = 'example.com' Port number is unchanged if not specified in the new value Pass URL: Setting .host = 'example.com:' Port number is unchanged if not specified Pass URL: Setting .host = '' The empty host is not valid for special schemes Pass URL: Setting .host = '' The empty host is OK for non-special schemes Pass URL: Setting .host = 'example.net' Path-only URLs can gain a host Pass URL: Setting .host = '0x7F000001:8080' IPv4 address syntax is normalized Pass URL: Setting .host = '[::0:01]:2' IPv6 address syntax is normalized Pass URL: Setting .host = '[2001:db8::2]:4002' IPv6 literal address with port, crbug.com/1012416 Pass URL: Setting .host = 'example.com:80' Default port number is removed Pass URL: Setting .host = 'example.com:443' Default port number is removed Pass URL: Setting .host = 'example.com:80' Default port number is only removed for the relevant scheme Pass URL: Setting .host = 'example.com:80' Port number is removed if new port is scheme default and existing URL has a non-default port Pass URL: Setting .host = 'example.com/stuff' Stuff after a / delimiter is ignored Pass URL: Setting .host = 'example.com:8080/stuff' Stuff after a / delimiter is ignored Pass URL: Setting .host = 'example.com?stuff' Stuff after a ? delimiter is ignored Pass URL: Setting .host = 'example.com?stuff:8080' Stuff after a ? delimiter is ignored, trailing 'port' Pass URL: Setting .host = 'example.com:8080?stuff' Stuff after a ? delimiter is ignored Pass URL: Setting .host = 'example.com#stuff' Stuff after a # delimiter is ignored Pass URL: Setting .host = 'example.com:8080#stuff' Stuff after a # delimiter is ignored Pass URL: Setting .host = 'example.com\stuff' Stuff after a \ delimiter is ignored for special schemes Pass URL: Setting .host = 'example.com:8080\stuff' Stuff after a \ delimiter is ignored for special schemes Pass URL: Setting .host = 'example.com\stuff' \ is not a delimiter for non-special schemes, but still forbidden in hosts Pass URL: Setting .host = 'example.com:8080stuff2' Anything other than ASCII digit stops the port parser in a setter but is not an error Pass URL: Setting .host = 'example.com:8080stuff2' Anything other than ASCII digit stops the port parser in a setter but is not an error Pass URL: Setting .host = 'example.com:8080+2' Anything other than ASCII digit stops the port parser in a setter but is not an error Pass URL: Setting .host = 'example.com:invalid' Anything other than ASCII digit stops the port parser in a setter but is not an error Pass URL: Setting .host = '[::1]:invalid' Anything other than ASCII digit stops the port parser in a setter but is not an error Pass URL: Setting .host = '[::1]' IPv6 without port Pass URL: Setting .host = 'example.com:65535' Port numbers are 16 bit integers Pass URL: Setting .host = 'example.com:65536' Port numbers are 16 bit integers, overflowing is an error. Hostname is still set, though. Pass URL: Setting .host = '[google.com]' Broken IPv6 Pass URL: Setting .host = '[::1.2.3.4x]' Pass URL: Setting .host = '[::1.2.3.]' Pass URL: Setting .host = '[::1.2.]' Pass URL: Setting .host = '[::1.]' Pass URL: Setting .host = 'x:123' Pass URL: Setting .host = 'loc%41lhost' Pass URL: Setting .host = '' Pass URL: Setting .host = '' Pass URL: Setting .host = '' Pass URL: Setting .host = '///bad.com' Leading / is not stripped Pass URL: Setting .host = '///bad.com' Leading / is not stripped Pass URL: Setting .host = 'a%C2%ADb' Pass URL: Setting .host = '­' Pass URL: Setting .host = '%C2%AD' Pass URL: Setting .host = 'xn--' Pass URL: Setting .host = '*' Pass URL: Setting .host = 'x@x' Pass URL: Setting .host = 'foo bar' Pass URL: Setting .host = '><' Pass URL: Setting .hostname = '' Non-special scheme Pass URL: Setting .hostname = ' ' Pass URL: Setting .hostname = ' ' Pass URL: Setting .hostname = ' ' Pass URL: Setting .hostname = ' ' Pass URL: Setting .hostname = '#' Pass URL: Setting .hostname = '/' Pass URL: Setting .hostname = '?' Pass URL: Setting .hostname = '@' Pass URL: Setting .hostname = 'example.com' Cannot-be-a-base means no host Pass URL: Setting .hostname = 'example.net' Cannot-be-a-base means no host Pass URL: Setting .hostname = 'example.com' Pass URL: Setting .hostname = '' The empty host is not valid for special schemes Pass URL: Setting .hostname = '' The empty host is OK for non-special schemes Pass URL: Setting .hostname = 'example.net' Path-only URLs can gain a host Pass URL: Setting .hostname = '0x7F000001' IPv4 address syntax is normalized Pass URL: Setting .hostname = '[::0:01]' IPv6 address syntax is normalized Pass URL: Setting .hostname = 'example.com:8080' : delimiter invalidates entire value Pass URL: Setting .hostname = 'example.com:' : delimiter invalidates entire value Pass URL: Setting .hostname = 'example.com/stuff' Stuff after a / delimiter is ignored Pass URL: Setting .hostname = 'example.com?stuff' Stuff after a ? delimiter is ignored Pass URL: Setting .hostname = 'example.com#stuff' Stuff after a # delimiter is ignored Pass URL: Setting .hostname = 'example.com\stuff' Stuff after a \ delimiter is ignored for special schemes Pass URL: Setting .hostname = 'example.com\stuff' \ is not a delimiter for non-special schemes, but still forbidden in hosts Pass URL: Setting .hostname = '[google.com]' Broken IPv6 Pass URL: Setting .hostname = '[::1.2.3.4x]' Pass URL: Setting .hostname = '[::1.2.3.]' Pass URL: Setting .hostname = '[::1.2.]' Pass URL: Setting .hostname = '[::1.]' Pass URL: Setting .hostname = 'x:123' Pass URL: Setting .hostname = 'loc%41lhost' Pass URL: Setting .hostname = '' Pass URL: Setting .hostname = '' Pass URL: Setting .hostname = '' Pass URL: Setting .hostname = 'h' Drop /. from path Pass URL: Setting .hostname = '' Pass URL: Setting .hostname = '///bad.com' Leading / is not stripped Pass URL: Setting .hostname = '///bad.com' Leading / is not stripped Pass URL: Setting .hostname = 'a%C2%ADb' Pass URL: Setting .hostname = '­' Pass URL: Setting .hostname = '%C2%AD' Pass URL: Setting .hostname = 'xn--' Pass URL: Setting .hostname = '*' Pass URL: Setting .hostname = 'x@x' Pass URL: Setting .hostname = 'foo bar' Pass URL: Setting .hostname = '><' Pass URL: Setting .port = '8080' Pass URL: Setting .port = '' Port number is removed if empty is the new value Pass URL: Setting .port = '80' Default port number is removed Pass URL: Setting .port = '443' Default port number is removed Pass URL: Setting .port = '80' Default port number is only removed for the relevant scheme Pass URL: Setting .port = '8080/stuff' Stuff after a / delimiter is ignored Pass URL: Setting .port = '8080?stuff' Stuff after a ? delimiter is ignored Pass URL: Setting .port = '8080#stuff' Stuff after a # delimiter is ignored Pass URL: Setting .port = '8080\stuff' Stuff after a \ delimiter is ignored for special schemes Pass URL: Setting .port = '8080stuff2' Anything other than ASCII digit stops the port parser in a setter but is not an error Pass URL: Setting .port = '8080stuff2' Anything other than ASCII digit stops the port parser in a setter but is not an error Pass URL: Setting .port = '8080+2' Anything other than ASCII digit stops the port parser in a setter but is not an error Pass URL: Setting .port = '65535' Port numbers are 16 bit integers Pass URL: Setting .port = '65536' Port numbers are 16 bit integers, overflowing is an error Pass URL: Setting .port = 'randomstring' Setting port to a string that doesn't parse as a number Pass URL: Setting .port = '65536' Port numbers are 16 bit integers, overflowing is an error Pass URL: Setting .port = '12' Pass URL: Setting .port = '12' Pass URL: Setting .port = '12' Pass URL: Setting .port = '12' Pass URL: Setting .port = '12' Pass URL: Setting .port = '12' Pass URL: Setting .port = ' 8080' Leading u0009 on special scheme Pass URL: Setting .port = ' 8080' Leading u0009 on non-special scheme Pass URL: Setting .port = '4wpt' Should use all ascii prefixed characters as port Pass URL: Setting .pathname = '/foo' Opaque paths cannot be set Pass URL: Setting .pathname = 'new value' Pass URL: Setting .pathname = 'new value' Pass URL: Setting .pathname = '' Special URLs cannot have their paths erased Pass URL: Setting .pathname = '' Non-special URLs can have their paths erased Pass URL: Setting .pathname = '' Non-special URLs with an empty host can have their paths erased Pass URL: Setting .pathname = '' Path-only URLs cannot have their paths erased Pass URL: Setting .pathname = 'test' Path-only URLs always have an initial slash Pass URL: Setting .pathname = '/var/log/../run/bar.socket' Pass URL: Setting .pathname = 'home' Pass URL: Setting .pathname = '../home' Pass URL: Setting .pathname = '\a\%2E\b\%2e.\c' \ is a segment delimiter for 'special' URLs Pass URL: Setting .pathname = '\a\%2E\b\%2e.\c' \ is *not* a segment delimiter for non-'special' URLs Pass URL: Setting .pathname = '  !"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~€Éé' UTF-8 percent encoding with the default encode set. Tabs and newlines are removed. Pass URL: Setting .pathname = '%2e%2E%c3%89té' Bytes already percent-encoded are left as-is, including %2E outside dotted segments. Pass URL: Setting .pathname = '?' ? needs to be encoded Pass URL: Setting .pathname = '#' # needs to be encoded Pass URL: Setting .pathname = '?' ? needs to be encoded, non-special scheme Pass URL: Setting .pathname = '#' # needs to be encoded, non-special scheme Pass URL: Setting .pathname = '/?é' ? doesn't mess up encoding Pass URL: Setting .pathname = '/#é' # doesn't mess up encoding Pass URL: Setting .pathname = '\\' File URLs and (back)slashes Pass URL: Setting .pathname = '//\/' File URLs and (back)slashes Pass URL: Setting .pathname = '//monkey/..//' File URLs and (back)slashes Pass URL: Setting .pathname = '/.//p' Serialize /. in path Pass URL: Setting .pathname = '/..//p' Pass URL: Setting .pathname = '//p' Pass URL: Setting .pathname = 'p' Drop /. from path Pass URL: Setting .pathname = 'space ' Non-special URLs with non-opaque paths percent-encode U+0020 Pass URL: Setting .pathname = 'space ' Pass URL: Setting .pathname = ' ' Trailing space should be encoded Pass URL: Setting .pathname = '' Trailing C0 control should be encoded Pass URL: Setting .search = 'lang=fr' Pass URL: Setting .search = 'lang=fr' Pass URL: Setting .search = '?lang=fr' Pass URL: Setting .search = '??lang=fr' Pass URL: Setting .search = '?' Pass URL: Setting .search = '' Pass URL: Setting .search = '' Pass URL: Setting .search = '' Pass URL: Setting .search = '  !"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~€Éé' UTF-8 percent encoding with the query encode set. Tabs and newlines are removed. Pass URL: Setting .search = '%c3%89té' Bytes already percent-encoded are left as-is Pass URL: Setting .search = '' Trailing spaces and opaque paths Pass URL: Setting .search = '' Pass URL: Setting .search = '' Trailing spaces and opaque paths Pass URL: Setting .search = '' Pass URL: Setting .search = ' ' Trailing space should be encoded Pass URL: Setting .search = '' Trailing C0 control should be encoded Pass URL: Setting .hash = 'main' Pass URL: Setting .hash = 'main' Pass URL: Setting .hash = '##nav' Pass URL: Setting .hash = '#main' Pass URL: Setting .hash = '#' Pass URL: Setting .hash = '' Pass URL: Setting .hash = '#foo bar' Pass URL: Setting .hash = '#foo"bar' Pass URL: Setting .hash = '#foo.hash = '#foo>bar' Pass URL: Setting .hash = '#foo`bar' Pass URL: Setting .hash = '  !"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~€Éé' Simple percent-encoding; tabs and newlines are removed Pass URL: Setting .hash = 'ab' Percent-encode NULLs in fragment Pass URL: Setting .hash = 'ab' Percent-encode NULLs in fragment Pass URL: Setting .hash = '%c3%89té' Bytes already percent-encoded are left as-is Pass URL: Setting .hash = 'castle' Pass URL: Setting .hash = '' Trailing spaces and opaque paths Pass URL: Setting .hash = '' Pass URL: Setting .hash = '' Trailing spaces and opaque paths Pass URL: Setting .hash = '' Pass URL: Setting .hash = ' ' Trailing space should be encoded Pass URL: Setting .hash = '' Trailing C0 control should be encoded Pass URL: Setting .href = 'http://0300.168.0xF0'