URLParser should not consider path of URLs with no host to start at the first slash...
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / url / url-constructor-expected.txt
index 11c8f0e..315e137 100644 (file)
@@ -1,8 +1,8 @@
 
 PASS URL.searchParams getter 
-FAIL URL.searchParams updating, clearing assert_equals: expected "" but got "a=b"
+PASS URL.searchParams updating, clearing 
 PASS URL.searchParams setter, invalid values 
-FAIL URL.searchParams and URL.search setters, update propagation assert_equals: expected "e=f&g=h" but got "a=b&c=d"
+PASS URL.searchParams and URL.search setters, update propagation 
 PASS Loading data… 
 PASS Parsing: <http://example  .
 org> against <http://example.org/foo/bar> 
@@ -14,16 +14,15 @@ PASS Parsing: < foo.com  > against <http://example.org/foo/bar>
 PASS Parsing: <a:       foo.com> against <http://example.org/foo/bar> 
 PASS Parsing: <http://f:21/ b ? d # e > against <http://example.org/foo/bar> 
 PASS Parsing: <http://f:/c> against <http://example.org/foo/bar> 
-FAIL Parsing: <http://f:0/c> against <http://example.org/foo/bar> assert_equals: origin expected "http://f:0" but got "http://f"
-FAIL Parsing: <http://f:00000000000000/c> against <http://example.org/foo/bar> assert_equals: href expected "http://f:0/c" but got "http://f:00000000000000/c"
-FAIL Parsing: <http://f:00000000000000000000080/c> against <http://example.org/foo/bar> assert_equals: href expected "http://f/c" but got "http://f:00000000000000000000080/c"
+PASS Parsing: <http://f:0/c> against <http://example.org/foo/bar> 
+PASS Parsing: <http://f:00000000000000/c> against <http://example.org/foo/bar> 
+PASS Parsing: <http://f:00000000000000000000080/c> against <http://example.org/foo/bar> 
 PASS Parsing: <http://f:b/c> against <http://example.org/foo/bar> 
 PASS Parsing: <http://f: /c> against <http://example.org/foo/bar> 
 PASS Parsing: <http://f:
 /c> against <http://example.org/foo/bar> 
 PASS Parsing: <http://f:fifty-two/c> against <http://example.org/foo/bar> 
-FAIL Parsing: <http://f:999999/c> against <http://example.org/foo/bar> assert_throws: function "function () {
-          bURL(expected.input, expected.bas..." did not throw
+PASS Parsing: <http://f:999999/c> against <http://example.org/foo/bar> 
 PASS Parsing: <http://f: 21 / b ? d # e > against <http://example.org/foo/bar> 
 PASS Parsing: <> against <http://example.org/foo/bar> 
 PASS Parsing: <        > against <http://example.org/foo/bar> 
@@ -47,17 +46,17 @@ PASS Parsing: <::23> against <http://example.org/foo/bar>
 FAIL Parsing: <foo://> against <http://example.org/foo/bar> assert_equals: href expected "foo:///" but got "foo://"
 PASS Parsing: <http://a:b@c:29/d> against <http://example.org/foo/bar> 
 PASS Parsing: <http::@c:29> against <http://example.org/foo/bar> 
-FAIL Parsing: <http://&a:foo(b]c@d:2/> against <http://example.org/foo/bar> Type error
-FAIL Parsing: <http://::@c@d:2> against <http://example.org/foo/bar> Type error
+PASS Parsing: <http://&a:foo(b]c@d:2/> against <http://example.org/foo/bar> 
+PASS Parsing: <http://::@c@d:2> against <http://example.org/foo/bar> 
 PASS Parsing: <http://foo.com:b@d/> against <http://example.org/foo/bar> 
 PASS Parsing: <http://foo.com/\@> against <http://example.org/foo/bar> 
 PASS Parsing: <http:\\foo.com\> against <http://example.org/foo/bar> 
 PASS Parsing: <http:\\a\b:c\d@foo.com\> against <http://example.org/foo/bar> 
 PASS Parsing: <foo:/> against <http://example.org/foo/bar> 
 PASS Parsing: <foo:/bar.com/> against <http://example.org/foo/bar> 
-FAIL Parsing: <foo://///////> against <http://example.org/foo/bar> assert_equals: pathname expected "///////" but got "/////////"
-FAIL Parsing: <foo://///////bar.com/> against <http://example.org/foo/bar> assert_equals: pathname expected "///////bar.com/" but got "/////////bar.com/"
-FAIL Parsing: <foo:////://///> against <http://example.org/foo/bar> assert_equals: pathname expected "//://///" but got "////://///"
+PASS Parsing: <foo://///////> against <http://example.org/foo/bar> 
+PASS Parsing: <foo://///////bar.com/> against <http://example.org/foo/bar> 
+PASS Parsing: <foo:////://///> against <http://example.org/foo/bar> 
 PASS Parsing: <c:/foo> against <http://example.org/foo/bar> 
 PASS Parsing: <//foo/bar> against <http://example.org/foo/bar> 
 PASS Parsing: <http://foo/path;a??e#f#g> against <http://example.org/foo/bar> 
@@ -71,7 +70,7 @@ PASS Parsing: <http://2001::1]> against <http://example.org/foo/bar>
 PASS Parsing: <http://2001::1]:80> against <http://example.org/foo/bar> 
 PASS Parsing: <http://[2001::1]> against <http://example.org/foo/bar> 
 PASS Parsing: <http://[2001::1]:80> against <http://example.org/foo/bar> 
-FAIL Parsing: <http:/example.com/> against <http://example.org/foo/bar> assert_equals: href expected "http://example.org/example.com/" but got "http://example.com/"
+PASS Parsing: <http:/example.com/> against <http://example.org/foo/bar> 
 PASS Parsing: <ftp:/example.com/> against <http://example.org/foo/bar> 
 PASS Parsing: <https:/example.com/> against <http://example.org/foo/bar> 
 PASS Parsing: <madeupscheme:/example.com/> against <http://example.org/foo/bar> 
@@ -101,11 +100,11 @@ PASS Parsing: </a/%2f/c> against <http://example.org/foo/bar>
 FAIL Parsing: <#β> against <http://example.org/foo/bar> assert_equals: href expected "http://example.org/foo/bar#β" but got "http://example.org/foo/bar#%CE%B2"
 PASS Parsing: <data:text/html,test#test> against <http://example.org/foo/bar> 
 PASS Parsing: <tel:1234567890> against <http://example.org/foo/bar> 
-FAIL Parsing: <file:c:\foo\bar.html> against <file:///tmp/mock/path> assert_equals: href expected "file:///c:/foo/bar.html" but got "file:///tmp/mock/c:/foo/bar.html"
-FAIL Parsing: <  File:c|////foo\bar.html> against <file:///tmp/mock/path> assert_equals: href expected "file:///c:////foo/bar.html" but got "file:///tmp/mock/c|////foo/bar.html"
-FAIL Parsing: <C|/foo/bar> against <file:///tmp/mock/path> assert_equals: href expected "file:///C:/foo/bar" but got "file:///tmp/mock/C|/foo/bar"
-FAIL Parsing: </C|\foo\bar> against <file:///tmp/mock/path> assert_equals: href expected "file:///C:/foo/bar" but got "file:///C|/foo/bar"
-FAIL Parsing: <//C|/foo/bar> against <file:///tmp/mock/path> Type error
+PASS Parsing: <file:c:\foo\bar.html> against <file:///tmp/mock/path> 
+PASS Parsing: <  File:c|////foo\bar.html> against <file:///tmp/mock/path> 
+PASS Parsing: <C|/foo/bar> against <file:///tmp/mock/path> 
+PASS Parsing: </C|\foo\bar> against <file:///tmp/mock/path> 
+PASS Parsing: <//C|/foo/bar> against <file:///tmp/mock/path> 
 PASS Parsing: <//server/file> against <file:///tmp/mock/path> 
 PASS Parsing: <\\server\file> against <file:///tmp/mock/path> 
 PASS Parsing: </\server/file> against <file:///tmp/mock/path> 
@@ -131,9 +130,9 @@ PASS Parsing: <http://example.com/foo/bar/../ton> against <about:blank>
 PASS Parsing: <http://example.com/foo/bar/../ton/../../a> against <about:blank> 
 PASS Parsing: <http://example.com/foo/../../..> against <about:blank> 
 PASS Parsing: <http://example.com/foo/../../../ton> against <about:blank> 
-FAIL Parsing: <http://example.com/foo/%2e> against <about:blank> assert_equals: href expected "http://example.com/foo/" but got "http://example.com/foo/%2e"
+PASS Parsing: <http://example.com/foo/%2e> against <about:blank> 
 FAIL Parsing: <http://example.com/foo/%2e%2> against <about:blank> assert_equals: href expected "http://example.com/foo/.%2" but got "http://example.com/foo/%2e%2"
-FAIL Parsing: <http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar> against <about:blank> assert_equals: href expected "http://example.com/..bar" but got "http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar"
+FAIL Parsing: <http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar> against <about:blank> assert_equals: href expected "http://example.com/..bar" but got "http://example.com/%2e.bar"
 PASS Parsing: <http://example.com////../..> against <about:blank> 
 PASS Parsing: <http://example.com/foo/bar//../..> against <about:blank> 
 PASS Parsing: <http://example.com/foo/bar//..> against <about:blank> 
@@ -161,9 +160,9 @@ FAIL Parsing: <http://www.google.com/foo?bar=baz# »> against <about:blank> asse
 FAIL Parsing: <data:test# »> against <about:blank> assert_equals: href expected "data:test# »" but got "data:test# %C2%BB"
 PASS Parsing: <http://[www.google.com]/> against <about:blank> 
 PASS Parsing: <http://www.google.com> against <about:blank> 
-FAIL Parsing: <http://192.0x00A80001> against <about:blank> assert_equals: href expected "http://192.168.0.1/" but got "http://192.0x00a80001/"
+PASS Parsing: <http://192.0x00A80001> against <about:blank> 
 FAIL Parsing: <http://www/foo%2Ehtml> against <about:blank> assert_equals: href expected "http://www/foo.html" but got "http://www/foo%2Ehtml"
-FAIL Parsing: <http://www/foo/%2E/html> against <about:blank> assert_equals: href expected "http://www/foo/html" but got "http://www/foo/%2E/html"
+PASS Parsing: <http://www/foo/%2E/html> against <about:blank> 
 PASS Parsing: <http://user:pass@/> against <about:blank> 
 PASS Parsing: <http://%25DOMAIN:foobar@foodomain.com/> against <about:blank> 
 PASS Parsing: <http:\\www.google.com\foo> against <about:blank> 
@@ -248,56 +247,45 @@ PASS Parsing: <../../test.txt> against <http://www.example.com/test>
 PASS Parsing: <中/test.txt> against <http://www.example.com/test> 
 PASS Parsing: <http://www.example2.com> against <http://www.example.com/test> 
 PASS Parsing: <//www.example2.com> against <http://www.example.com/test> 
-FAIL Parsing: <file:...> against <http://www.example.com/test> assert_equals: href expected "file:///..." but got "file://..."
-FAIL Parsing: <file:..> against <http://www.example.com/test> assert_equals: href expected "file:///" but got "file://.."
-FAIL Parsing: <file:a> against <http://www.example.com/test> assert_equals: href expected "file:///a" but got "file://a"
+PASS Parsing: <file:...> against <http://www.example.com/test> 
+PASS Parsing: <file:..> against <http://www.example.com/test> 
+PASS Parsing: <file:a> against <http://www.example.com/test> 
 PASS Parsing: <http://ExAmPlE.CoM> against <http://other.com/> 
 PASS Parsing: <http://example example.com> against <http://other.com/> 
 PASS Parsing: <http://Goo%20 goo%7C|.com> against <http://other.com/> 
-FAIL Parsing: <http://[]> against <http://other.com/> assert_throws: function "function () {
-          bURL(expected.input, expected.bas..." did not throw
-FAIL Parsing: <http://[:]> against <http://other.com/> assert_throws: function "function () {
-          bURL(expected.input, expected.bas..." did not throw
+PASS Parsing: <http://[]> against <http://other.com/> 
+PASS Parsing: <http://[:]> against <http://other.com/> 
 PASS Parsing: <http://GOO  goo.com> against <http://other.com/> 
 PASS Parsing: <http://GOO​⁠goo.com> against <http://other.com/> 
 PASS Parsing: <http://www.foo。bar.com> against <http://other.com/> 
 PASS Parsing: <http://﷐zyx.com> against <http://other.com/> 
-FAIL Parsing: <http://%ef%b7%90zyx.com> against <http://other.com/> assert_throws: function "function () {
-          bURL(expected.input, expected.bas..." did not throw
+PASS Parsing: <http://%ef%b7%90zyx.com> against <http://other.com/> 
 PASS Parsing: <http://Go.com> against <http://other.com/> 
-FAIL Parsing: <http://%41.com> against <http://other.com/> assert_throws: function "function () {
-          bURL(expected.input, expected.bas..." did not throw
-FAIL Parsing: <http://%ef%bc%85%ef%bc%94%ef%bc%91.com> against <http://other.com/> assert_throws: function "function () {
-          bURL(expected.input, expected.bas..." did not throw
-FAIL Parsing: <http://%00.com> against <http://other.com/> assert_throws: function "function () {
-          bURL(expected.input, expected.bas..." did not throw
-FAIL Parsing: <http://%ef%bc%85%ef%bc%90%ef%bc%90.com> against <http://other.com/> assert_throws: function "function () {
-          bURL(expected.input, expected.bas..." did not throw
-FAIL Parsing: <http://你好你好> against <http://other.com/> assert_equals: origin expected "http://你好你好" but got "http://xn--6qqa088eba"
-FAIL Parsing: <http://%zz%66%a.com> against <http://other.com/> assert_throws: function "function () {
-          bURL(expected.input, expected.bas..." did not throw
-FAIL Parsing: <http://%25> against <http://other.com/> assert_throws: function "function () {
-          bURL(expected.input, expected.bas..." did not throw
-FAIL Parsing: <http://hello%00> against <http://other.com/> assert_throws: function "function () {
-          bURL(expected.input, expected.bas..." did not throw
-FAIL Parsing: <http://%30%78%63%30%2e%30%32%35%30.01> against <http://other.com/> assert_equals: href expected "http://192.168.0.1/" but got "http://%30%78%63%30%2e%30%32%35%30.01/"
-FAIL Parsing: <http://%30%78%63%30%2e%30%32%35%30.01%2e> against <http://other.com/> assert_equals: href expected "http://192.168.0.1/" but got "http://%30%78%63%30%2e%30%32%35%30.01%2e/"
+PASS Parsing: <http://%41.com> against <http://other.com/> 
+PASS Parsing: <http://%ef%bc%85%ef%bc%94%ef%bc%91.com> against <http://other.com/> 
+PASS Parsing: <http://%00.com> against <http://other.com/> 
+PASS Parsing: <http://%ef%bc%85%ef%bc%90%ef%bc%90.com> against <http://other.com/> 
+PASS Parsing: <http://你好你好> against <http://other.com/> 
+PASS Parsing: <http://%zz%66%a.com> against <http://other.com/> 
+PASS Parsing: <http://%25> against <http://other.com/> 
+PASS Parsing: <http://hello%00> against <http://other.com/> 
+PASS Parsing: <http://%30%78%63%30%2e%30%32%35%30.01> against <http://other.com/> 
+PASS Parsing: <http://%30%78%63%30%2e%30%32%35%30.01%2e> against <http://other.com/> 
 FAIL Parsing: <http://192.168.0.257> against <http://other.com/> assert_throws: function "function () {
           bURL(expected.input, expected.bas..." did not throw
-FAIL Parsing: <http://%3g%78%63%30%2e%30%32%35%30%2E.01> against <http://other.com/> assert_throws: function "function () {
-          bURL(expected.input, expected.bas..." did not throw
+PASS Parsing: <http://%3g%78%63%30%2e%30%32%35%30%2E.01> against <http://other.com/> 
 PASS Parsing: <http://192.168.0.1 hello> against <http://other.com/> 
-FAIL Parsing: <http://0Xc0.0250.01> against <http://other.com/> assert_equals: href expected "http://192.168.0.1/" but got "http://0xc0.0250.01/"
+PASS Parsing: <http://0Xc0.0250.01> against <http://other.com/> 
 PASS Parsing: <http://[google.com]> against <http://other.com/> 
-FAIL Parsing: <http://foo:💩@example.com/bar> against <http://other.com/> Type error
+PASS Parsing: <http://foo:💩@example.com/bar> against <http://other.com/> 
 PASS Parsing: <#> against <test:test> 
 PASS Parsing: <#x> against <mailto:x@x.com> 
 PASS Parsing: <#x> against <data:,> 
 PASS Parsing: <#x> against <about:blank> 
 PASS Parsing: <#> against <test:test?test> 
-FAIL Parsing: <https://@test@test@example:800/> against <http://doesnotmatter/> Type error
-FAIL Parsing: <https://@@@example> against <http://doesnotmatter/> Type error
-FAIL Parsing: <http://`{}:`{}@h/`{}?`{}> against <http://doesnotmatter/> Type error
+PASS Parsing: <https://@test@test@example:800/> against <http://doesnotmatter/> 
+PASS Parsing: <https://@@@example> against <http://doesnotmatter/> 
+PASS Parsing: <http://`{}:`{}@h/`{}?`{}> against <http://doesnotmatter/> 
 PASS Parsing: </some/path> against <http://user@example.org/smth> 
 PASS Parsing: <> against <http://user:pass@example.org:21/smth> 
 PASS Parsing: </some/path> against <http://user:pass@example.org:21/smth> 
@@ -305,52 +293,46 @@ PASS Parsing: <i> against <sc:sd>
 PASS Parsing: <i> against <sc:sd/sd> 
 PASS Parsing: <i> against <sc:/pa/pa> 
 PASS Parsing: <i> against <sc://ho/pa> 
-FAIL Parsing: <i> against <sc:///pa/pa> assert_equals: pathname expected "/pa/i" but got "///pa/i"
+PASS Parsing: <i> against <sc:///pa/pa> 
 PASS Parsing: <../i> against <sc:sd> 
 PASS Parsing: <../i> against <sc:sd/sd> 
 PASS Parsing: <../i> against <sc:/pa/pa> 
 PASS Parsing: <../i> against <sc://ho/pa> 
-FAIL Parsing: <../i> against <sc:///pa/pa> assert_equals: pathname expected "/i" but got "///i"
+PASS Parsing: <../i> against <sc:///pa/pa> 
 PASS Parsing: </i> against <sc:sd> 
 PASS Parsing: </i> against <sc:sd/sd> 
 PASS Parsing: </i> against <sc:/pa/pa> 
 PASS Parsing: </i> against <sc://ho/pa> 
-FAIL Parsing: </i> against <sc:///pa/pa> assert_equals: href expected "sc:///i" but got "sc:/i"
+PASS Parsing: </i> against <sc:///pa/pa> 
 PASS Parsing: <?i> against <sc:sd> 
 PASS Parsing: <?i> against <sc:sd/sd> 
 PASS Parsing: <?i> against <sc:/pa/pa> 
 PASS Parsing: <?i> against <sc://ho/pa> 
-FAIL Parsing: <?i> against <sc:///pa/pa> assert_equals: pathname expected "/pa/pa" but got "///pa/pa"
+PASS Parsing: <?i> against <sc:///pa/pa> 
 PASS Parsing: <#i> against <sc:sd> 
 PASS Parsing: <#i> against <sc:sd/sd> 
 PASS Parsing: <#i> against <sc:/pa/pa> 
 PASS Parsing: <#i> against <sc://ho/pa> 
-FAIL Parsing: <#i> against <sc:///pa/pa> assert_equals: pathname expected "/pa/pa" but got "///pa/pa"
+PASS Parsing: <#i> against <sc:///pa/pa> 
 PASS Parsing: <about:/../> against <about:blank> 
 PASS Parsing: <data:/../> against <about:blank> 
 PASS Parsing: <javascript:/../> against <about:blank> 
 PASS Parsing: <mailto:/../> against <about:blank> 
-PASS Parsing: <sc://ñ.test/> against <about:blank> 
-FAIL Parsing: <sc:\../> against <about:blank> assert_equals: href expected "sc:\\../" but got "sc:/"
+FAIL Parsing: <sc://ñ.test/> against <about:blank> assert_equals: href expected "sc://xn--ida.test/" but got "sc://%C3%B1.test/"
+PASS Parsing: <sc:\../> against <about:blank> 
 PASS Parsing: <sc::a@example.net> against <about:blank> 
 PASS Parsing: <http://127.0.0.1:10100/relative_import.html> against <about:blank> 
 PASS Parsing: <http://facebook.com/?foo=%7B%22abc%22> against <about:blank> 
 PASS Parsing: <https://localhost:3000/jqueryui@1.2.3> against <about:blank> 
 PASS Parsing: <h       t
-t
-p://h  o
-s
-t:9    0
-0
-0/p    a
-t
-h?q    u
-e
-ry#f   r
-a
-g> against <about:blank> 
+t\rp://h       o
+s\rt:9 0
+0\r0/p a
+t\rh?q u
+e\rry#f        r
+a\rg> against <about:blank> 
 PASS Parsing: <?a=b&c=d> against <http://example.org/foo/bar> 
-FAIL Parsing: <??a=b&c=d> against <http://example.org/foo/bar> assert_equals: searchParams expected "%3Fa=b&c=d" but got "a=b&c=d"
+PASS Parsing: <??a=b&c=d> against <http://example.org/foo/bar> 
 PASS Parsing: <http:> against <http://example.org/foo/bar> 
 FAIL Parsing: <http:> against <https://example.org/foo/bar> assert_throws: function "function () {
           bURL(expected.input, expected.bas..." did not throw