[url-setters.any.html]
  [URL: Setting <http://test@example.net>.protocol = 'file' Can’t switch from URL containing username/password/port to file]
    expected: FAIL

  [URL: Setting <https://example.net:1234>.protocol = 'file']
    expected: FAIL

  [URL: Setting <wss://x:x@example.net:1234>.protocol = 'file']
    expected: FAIL

  [URL: Setting <file:///test>.protocol = 'https']
    expected: FAIL

  [URL: Setting <http://example.net>.protocol = 'b' Can’t switch from special scheme to non-special]
    expected: FAIL

  [URL: Setting <file://hi/path>.protocol = 's']
    expected: FAIL

  [URL: Setting <https://example.net>.protocol = 's']
    expected: FAIL

  [URL: Setting <ftp://example.net>.protocol = 'test']
    expected: FAIL

  [URL: Setting <mailto:me@example.net>.protocol = 'http' Cannot-be-a-base URL doesn’t have a host, but URL in a special scheme must.]
    expected: FAIL

  [URL: Setting <ssh://me@example.net>.protocol = 'http' Can’t switch from non-special scheme to special]
    expected: FAIL

  [URL: Setting <ssh://me@example.net>.protocol = 'https']
    expected: FAIL

  [URL: Setting <ssh://me@example.net>.protocol = 'file']
    expected: FAIL

  [URL: Setting <ssh://example.net>.protocol = 'file']
    expected: FAIL

  [URL: Setting <nonsense:///test>.protocol = 'https']
    expected: FAIL

  [URL: Setting <http://example.net>.username = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' UTF-8 percent encoding with the userinfo encode set.]
    expected: FAIL

  [URL: Setting <javascript://x/>.username = 'wario']
    expected: FAIL

  [URL: Setting <file://test/>.username = 'test']
    expected: FAIL

  [URL: Setting <http://example.net>.password = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' UTF-8 percent encoding with the userinfo encode set.]
    expected: FAIL

  [URL: Setting <javascript://x/>.password = 'bowser']
    expected: FAIL

  [URL: Setting <file://test/>.password = 'test']
    expected: FAIL

  [URL: Setting <sc://x/>.host = '\x00' Non-special scheme]
    expected: FAIL

  [URL: Setting <sc://x/>.host = '\t']
    expected: FAIL

  [URL: Setting <sc://x/>.host = '\n']
    expected: FAIL

  [URL: Setting <sc://x/>.host = '\r']
    expected: FAIL

  [URL: Setting <sc://x/>.host = ' ']
    expected: FAIL

  [URL: Setting <sc://x/>.host = '#']
    expected: FAIL

  [URL: Setting <sc://x/>.host = '/']
    expected: FAIL

  [URL: Setting <sc://x/>.host = '?']
    expected: FAIL

  [URL: Setting <sc://x/>.host = '@']
    expected: FAIL

  [URL: Setting <sc://x/>.host = 'ß']
    expected: FAIL

  [URL: Setting <view-source+http://example.net/foo>.host = '' The empty host is OK for non-special schemes]
    expected: FAIL

  [URL: Setting <a:/foo>.host = 'example.net' Path-only URLs can gain a host]
    expected: FAIL

  [URL: Setting <view-source+http://example.net/path>.host = 'example.com\\stuff' \\ is not a delimiter for non-special schemes, but still forbidden in hosts]
    expected: FAIL

  [URL: Setting <view-source+http://example.net/path>.host = 'example.com:8080stuff2' Anything other than ASCII digit stops the port parser in a setter but is not an error]
    expected: FAIL

  [URL: Setting <file://y/>.host = 'x:123']
    expected: FAIL

  [URL: Setting <sc://test@test/>.host = '']
    expected: FAIL

  [URL: Setting <sc://test:12/>.host = '']
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = '\x00' Non-special scheme]
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = '\t']
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = '\n']
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = '\r']
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = ' ']
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = '#']
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = '/']
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = '?']
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = '@']
    expected: FAIL

  [URL: Setting <view-source+http://example.net/foo>.hostname = '' The empty host is OK for non-special schemes]
    expected: FAIL

  [URL: Setting <a:/foo>.hostname = 'example.net' Path-only URLs can gain a host]
    expected: FAIL

  [URL: Setting <view-source+http://example.net/path>.hostname = 'example.com\\stuff' \\ is not a delimiter for non-special schemes, but still forbidden in hosts]
    expected: FAIL

  [URL: Setting <file://y/>.hostname = 'x:123']
    expected: FAIL

  [URL: Setting <sc://test@test/>.hostname = '']
    expected: FAIL

  [URL: Setting <sc://test:12/>.hostname = '']
    expected: FAIL

  [URL: Setting <non-spec:/.//p>.hostname = 'h' Drop /. from path]
    expected: FAIL

  [URL: Setting <non-spec:/.//p>.hostname = '']
    expected: FAIL

  [URL: Setting <view-source+http://example.net/path>.port = '8080stuff2' Anything other than ASCII digit stops the port parser in a setter but is not an error]
    expected: FAIL

  [URL: Setting <non-special://example.net:8080/path>.port = '65536' Port numbers are 16 bit integers, overflowing is an error]
    expected: FAIL

  [URL: Setting <file://test/>.port = '12']
    expected: FAIL

  [URL: Setting <sc://x/>.port = '12']
    expected: FAIL

  [URL: Setting <javascript://x/>.port = '12']
    expected: FAIL

  [URL: Setting <unix:/run/foo.socket?timeout=10>.pathname = '/var/log/../run/bar.socket']
    expected: FAIL

  [URL: Setting <http://example.net/home?lang=fr#nav>.pathname = '\\a\\%2E\\b\\%2e.\\c' \\ is a segment delimiter for 'special' URLs]
    expected: FAIL

  [URL: Setting <view-source+http://example.net/home?lang=fr#nav>.pathname = '\\a\\%2E\\b\\%2e.\\c' \\ is *not* a segment delimiter for non-'special' URLs]
    expected: FAIL

  [URL: Setting <a:/>.pathname = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' UTF-8 percent encoding with the default encode set. Tabs and newlines are removed.]
    expected: FAIL

  [URL: Setting <sc://example.net>.pathname = '?' ? needs to be encoded, non-special scheme]
    expected: FAIL

  [URL: Setting <sc://example.net>.pathname = '#' # needs to be encoded, non-special scheme]
    expected: FAIL

  [URL: Setting <file://monkey/>.pathname = '\\\\' File URLs and (back)slashes]
    expected: FAIL

  [URL: Setting <file:///unicorn>.pathname = '//\\/' File URLs and (back)slashes]
    expected: FAIL

  [URL: Setting <non-spec:/>.pathname = '/.//p' Serialize /. in path]
    expected: FAIL

  [URL: Setting <non-spec:/>.pathname = '/..//p']
    expected: FAIL

  [URL: Setting <non-spec:/>.pathname = '//p']
    expected: FAIL

  [URL: Setting <non-spec:/.//>.pathname = 'p' Drop /. from path]
    expected: FAIL

  [URL: Setting <a:/>.search = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' UTF-8 percent encoding with the query encode set. Tabs and newlines are removed.]
    expected: FAIL

  [URL: Setting <a:/>.hash = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' Simple percent-encoding; tabs and newlines are removed]
    expected: FAIL

  [URL: Setting <sc://example.com/>.host = '///bad.com' Leading / is not stripped]
    expected: FAIL

  [URL: Setting <sc://example.com/>.hostname = '///bad.com' Leading / is not stripped]
    expected: FAIL

  [URL: Setting <foo://somehost/some/path>.pathname = '' Non-special URLs can have their paths erased]
    expected: FAIL

  [URL: Setting <foo:///some/path>.pathname = '' Non-special URLs with an empty host can have their paths erased]
    expected: FAIL

  [URL: Setting <foo:/some/path>.pathname = '' Path-only URLs cannot have their paths erased]
    expected: FAIL

  [URL: Setting <foo:/some/path>.pathname = 'test' Path-only URLs always have an initial slash]
    expected: FAIL


[url-setters.any.worker.html]
  [URL: Setting <http://test@example.net>.protocol = 'file' Can’t switch from URL containing username/password/port to file]
    expected: FAIL

  [URL: Setting <https://example.net:1234>.protocol = 'file']
    expected: FAIL

  [URL: Setting <wss://x:x@example.net:1234>.protocol = 'file']
    expected: FAIL

  [URL: Setting <file:///test>.protocol = 'https']
    expected: FAIL

  [URL: Setting <http://example.net>.protocol = 'b' Can’t switch from special scheme to non-special]
    expected: FAIL

  [URL: Setting <file://hi/path>.protocol = 's']
    expected: FAIL

  [URL: Setting <https://example.net>.protocol = 's']
    expected: FAIL

  [URL: Setting <ftp://example.net>.protocol = 'test']
    expected: FAIL

  [URL: Setting <mailto:me@example.net>.protocol = 'http' Cannot-be-a-base URL doesn’t have a host, but URL in a special scheme must.]
    expected: FAIL

  [URL: Setting <ssh://me@example.net>.protocol = 'http' Can’t switch from non-special scheme to special]
    expected: FAIL

  [URL: Setting <ssh://me@example.net>.protocol = 'https']
    expected: FAIL

  [URL: Setting <ssh://me@example.net>.protocol = 'file']
    expected: FAIL

  [URL: Setting <ssh://example.net>.protocol = 'file']
    expected: FAIL

  [URL: Setting <nonsense:///test>.protocol = 'https']
    expected: FAIL

  [URL: Setting <http://example.net>.username = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' UTF-8 percent encoding with the userinfo encode set.]
    expected: FAIL

  [URL: Setting <javascript://x/>.username = 'wario']
    expected: FAIL

  [URL: Setting <file://test/>.username = 'test']
    expected: FAIL

  [URL: Setting <http://example.net>.password = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' UTF-8 percent encoding with the userinfo encode set.]
    expected: FAIL

  [URL: Setting <javascript://x/>.password = 'bowser']
    expected: FAIL

  [URL: Setting <file://test/>.password = 'test']
    expected: FAIL

  [URL: Setting <sc://x/>.host = '\x00' Non-special scheme]
    expected: FAIL

  [URL: Setting <sc://x/>.host = '\t']
    expected: FAIL

  [URL: Setting <sc://x/>.host = '\n']
    expected: FAIL

  [URL: Setting <sc://x/>.host = '\r']
    expected: FAIL

  [URL: Setting <sc://x/>.host = ' ']
    expected: FAIL

  [URL: Setting <sc://x/>.host = '#']
    expected: FAIL

  [URL: Setting <sc://x/>.host = '/']
    expected: FAIL

  [URL: Setting <sc://x/>.host = '?']
    expected: FAIL

  [URL: Setting <sc://x/>.host = '@']
    expected: FAIL

  [URL: Setting <sc://x/>.host = 'ß']
    expected: FAIL

  [URL: Setting <view-source+http://example.net/foo>.host = '' The empty host is OK for non-special schemes]
    expected: FAIL

  [URL: Setting <a:/foo>.host = 'example.net' Path-only URLs can gain a host]
    expected: FAIL

  [URL: Setting <view-source+http://example.net/path>.host = 'example.com\\stuff' \\ is not a delimiter for non-special schemes, but still forbidden in hosts]
    expected: FAIL

  [URL: Setting <view-source+http://example.net/path>.host = 'example.com:8080stuff2' Anything other than ASCII digit stops the port parser in a setter but is not an error]
    expected: FAIL

  [URL: Setting <file://y/>.host = 'x:123']
    expected: FAIL

  [URL: Setting <sc://test@test/>.host = '']
    expected: FAIL

  [URL: Setting <sc://test:12/>.host = '']
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = '\x00' Non-special scheme]
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = '\t']
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = '\n']
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = '\r']
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = ' ']
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = '#']
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = '/']
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = '?']
    expected: FAIL

  [URL: Setting <sc://x/>.hostname = '@']
    expected: FAIL

  [URL: Setting <view-source+http://example.net/foo>.hostname = '' The empty host is OK for non-special schemes]
    expected: FAIL

  [URL: Setting <a:/foo>.hostname = 'example.net' Path-only URLs can gain a host]
    expected: FAIL

  [URL: Setting <view-source+http://example.net/path>.hostname = 'example.com\\stuff' \\ is not a delimiter for non-special schemes, but still forbidden in hosts]
    expected: FAIL

  [URL: Setting <file://y/>.hostname = 'x:123']
    expected: FAIL

  [URL: Setting <sc://test@test/>.hostname = '']
    expected: FAIL

  [URL: Setting <sc://test:12/>.hostname = '']
    expected: FAIL

  [URL: Setting <non-spec:/.//p>.hostname = 'h' Drop /. from path]
    expected: FAIL

  [URL: Setting <non-spec:/.//p>.hostname = '']
    expected: FAIL

  [URL: Setting <view-source+http://example.net/path>.port = '8080stuff2' Anything other than ASCII digit stops the port parser in a setter but is not an error]
    expected: FAIL

  [URL: Setting <non-special://example.net:8080/path>.port = '65536' Port numbers are 16 bit integers, overflowing is an error]
    expected: FAIL

  [URL: Setting <file://test/>.port = '12']
    expected: FAIL

  [URL: Setting <sc://x/>.port = '12']
    expected: FAIL

  [URL: Setting <javascript://x/>.port = '12']
    expected: FAIL

  [URL: Setting <unix:/run/foo.socket?timeout=10>.pathname = '/var/log/../run/bar.socket']
    expected: FAIL

  [URL: Setting <http://example.net/home?lang=fr#nav>.pathname = '\\a\\%2E\\b\\%2e.\\c' \\ is a segment delimiter for 'special' URLs]
    expected: FAIL

  [URL: Setting <view-source+http://example.net/home?lang=fr#nav>.pathname = '\\a\\%2E\\b\\%2e.\\c' \\ is *not* a segment delimiter for non-'special' URLs]
    expected: FAIL

  [URL: Setting <a:/>.pathname = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' UTF-8 percent encoding with the default encode set. Tabs and newlines are removed.]
    expected: FAIL

  [URL: Setting <sc://example.net>.pathname = '?' ? needs to be encoded, non-special scheme]
    expected: FAIL

  [URL: Setting <sc://example.net>.pathname = '#' # needs to be encoded, non-special scheme]
    expected: FAIL

  [URL: Setting <file://monkey/>.pathname = '\\\\' File URLs and (back)slashes]
    expected: FAIL

  [URL: Setting <file:///unicorn>.pathname = '//\\/' File URLs and (back)slashes]
    expected: FAIL

  [URL: Setting <non-spec:/>.pathname = '/.//p' Serialize /. in path]
    expected: FAIL

  [URL: Setting <non-spec:/>.pathname = '/..//p']
    expected: FAIL

  [URL: Setting <non-spec:/>.pathname = '//p']
    expected: FAIL

  [URL: Setting <non-spec:/.//>.pathname = 'p' Drop /. from path]
    expected: FAIL

  [URL: Setting <a:/>.search = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' UTF-8 percent encoding with the query encode set. Tabs and newlines are removed.]
    expected: FAIL

  [URL: Setting <a:/>.hash = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' Simple percent-encoding; tabs and newlines are removed]
    expected: FAIL

  [URL: Setting <sc://example.com/>.host = '///bad.com' Leading / is not stripped]
    expected: FAIL

  [URL: Setting <sc://example.com/>.hostname = '///bad.com' Leading / is not stripped]
    expected: FAIL

  [URL: Setting <foo://somehost/some/path>.pathname = '' Non-special URLs can have their paths erased]
    expected: FAIL

  [URL: Setting <foo:///some/path>.pathname = '' Non-special URLs with an empty host can have their paths erased]
    expected: FAIL

  [URL: Setting <foo:/some/path>.pathname = '' Path-only URLs cannot have their paths erased]
    expected: FAIL

  [URL: Setting <foo:/some/path>.pathname = 'test' Path-only URLs always have an initial slash]
    expected: FAIL
