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