This is a testharness.js-based test.
[FAIL] : Setting .protocol = 'http' Can’t switch from file URL with no host
assert_equals: expected "file:///" but got "http://localhost/"
[FAIL] : Setting .protocol = 'http' Can’t switch from file URL with no host
assert_equals: expected "file:///" but got "http://localhost/"
[FAIL] : Setting .host = 'x:123'
assert_equals: expected "file://y/" but got "file://x/"
[FAIL] : Setting .host = 'x:123'
assert_equals: expected "file://y/" but got "file://x/"
[FAIL] : Setting .host = 'loc%41lhost'
assert_equals: expected "file:///" but got "file://localhost/"
[FAIL] : Setting .host = 'loc%41lhost'
assert_equals: expected "file:///" but got "file://localhost/"
[FAIL] : Setting .hostname = 'loc%41lhost'
assert_equals: expected "file:///" but got "file://localhost/"
[FAIL] : Setting .hostname = 'loc%41lhost'
assert_equals: expected "file:///" but got "file://localhost/"
[FAIL] : Setting .port = '12'
assert_equals: expected "file:///" but got "file://localhost/"
[FAIL] : Setting .port = '12'
assert_equals: expected "file:///" but got "file://localhost/"
[FAIL] : Setting .pathname = '//\\/' File URLs and (back)slashes
assert_equals: expected "file://////" but got "file:///"
[FAIL] : Setting .pathname = '//\\/' File URLs and (back)slashes
assert_equals: expected "file://////" but got "file:///"
[FAIL] : Setting .pathname = '//monkey/..//' File URLs and (back)slashes
assert_equals: expected "file://///" but got "file:///"
[FAIL] : Setting .pathname = '//monkey/..//' File URLs and (back)slashes
assert_equals: expected "file://///" but got "file:///"
Harness: the test ran to completion.