Skip to content

Commit 03cc9c4

Browse files
author
Jake Champion
committed
fix: update to latest url crate which passes some more wpt url tests
1 parent 10ed4ed commit 03cc9c4

File tree

6 files changed

+46
-39
lines changed

6 files changed

+46
-39
lines changed

runtime/js-compute-runtime/rust-url/Cargo.lock

+14-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runtime/js-compute-runtime/rust-url/Cargo.toml

+8-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,11 @@ edition = "2018"
77
crate-type = ["staticlib"]
88

99
[dependencies]
10-
url = "2.3.1"
10+
url = "2.4.0"
11+
12+
[profile.release]
13+
lto = true
14+
panic = 'abort'
15+
16+
[profile.dev]
17+
panic = 'abort'

tests/wpt-harness/expectations/url/url-constructor.any.js.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -1911,40 +1911,40 @@
19111911
"status": "PASS"
19121912
},
19131913
"Parsing: <non-spec:/.//> without base": {
1914-
"status": "FAIL"
1914+
"status": "PASS"
19151915
},
19161916
"Parsing: <non-spec:/..//> without base": {
1917-
"status": "FAIL"
1917+
"status": "PASS"
19181918
},
19191919
"Parsing: <non-spec:/a/..//> without base": {
1920-
"status": "FAIL"
1920+
"status": "PASS"
19211921
},
19221922
"Parsing: <non-spec:/.//path> without base": {
1923-
"status": "FAIL"
1923+
"status": "PASS"
19241924
},
19251925
"Parsing: <non-spec:/..//path> without base": {
1926-
"status": "FAIL"
1926+
"status": "PASS"
19271927
},
19281928
"Parsing: <non-spec:/a/..//path> without base": {
1929-
"status": "FAIL"
1929+
"status": "PASS"
19301930
},
19311931
"Parsing: </.//path> against <non-spec:/p>": {
1932-
"status": "FAIL"
1932+
"status": "PASS"
19331933
},
19341934
"Parsing: </..//path> against <non-spec:/p>": {
1935-
"status": "FAIL"
1935+
"status": "PASS"
19361936
},
19371937
"Parsing: <..//path> against <non-spec:/p>": {
1938-
"status": "FAIL"
1938+
"status": "PASS"
19391939
},
19401940
"Parsing: <a/..//path> against <non-spec:/p>": {
1941-
"status": "FAIL"
1941+
"status": "PASS"
19421942
},
19431943
"Parsing: <> against <non-spec:/..//p>": {
1944-
"status": "FAIL"
1944+
"status": "PASS"
19451945
},
19461946
"Parsing: <path> against <non-spec:/..//p>": {
1947-
"status": "FAIL"
1947+
"status": "PASS"
19481948
},
19491949
"Parsing: <../path> against <non-spec:/.//p>": {
19501950
"status": "PASS"

tests/wpt-harness/expectations/url/url-setters.any.js.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,10 @@
453453
"status": "PASS"
454454
},
455455
"URL: Setting <non-spec:/.//p>.hostname = 'h' Drop /. from path": {
456-
"status": "PASS"
456+
"status": "FAIL"
457457
},
458458
"URL: Setting <non-spec:/.//p>.hostname = ''": {
459-
"status": "PASS"
459+
"status": "FAIL"
460460
},
461461
"URL: Setting <http://example.com/>.hostname = '///bad.com' Leading / is not stripped": {
462462
"status": "PASS"
@@ -633,7 +633,7 @@
633633
"status": "FAIL"
634634
},
635635
"URL: Setting <non-spec:/.//>.pathname = 'p' Drop /. from path": {
636-
"status": "PASS"
636+
"status": "FAIL"
637637
},
638638
"URL: Setting <data:/nospace>.pathname = 'space ' Non-special URLs with non-opaque paths percent-encode U+0020": {
639639
"status": "FAIL"
@@ -678,16 +678,16 @@
678678
"status": "PASS"
679679
},
680680
"URL: Setting <data:space ?query>.search = '' Drop trailing spaces from trailing opaque paths": {
681-
"status": "FAIL"
681+
"status": "PASS"
682682
},
683683
"URL: Setting <sc:space ?query>.search = ''": {
684-
"status": "FAIL"
684+
"status": "PASS"
685685
},
686686
"URL: Setting <data:space ?query#fragment>.search = '' Do not drop trailing spaces from non-trailing opaque paths": {
687-
"status": "PASS"
687+
"status": "FAIL"
688688
},
689689
"URL: Setting <sc:space ?query#fragment>.search = ''": {
690-
"status": "PASS"
690+
"status": "FAIL"
691691
},
692692
"URL: Setting <http://example.net>.search = ' ' Trailing space should be encoded": {
693693
"status": "PASS"
@@ -744,10 +744,10 @@
744744
"status": "PASS"
745745
},
746746
"URL: Setting <data:space #fragment>.hash = '' Drop trailing spaces from trailing opaque paths": {
747-
"status": "FAIL"
747+
"status": "PASS"
748748
},
749749
"URL: Setting <sc:space #fragment>.hash = ''": {
750-
"status": "FAIL"
750+
"status": "PASS"
751751
},
752752
"URL: Setting <data:space ?query#fragment>.hash = '' Do not drop trailing spaces from non-trailing opaque paths": {
753753
"status": "PASS"

tests/wpt-harness/expectations/url/urlsearchparams-delete.any.js.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"status": "PASS"
1313
},
1414
"Changing the query of a URL with an opaque path can impact the path": {
15-
"status": "FAIL"
15+
"status": "PASS"
1616
},
1717
"Changing the query of a URL with an opaque path can impact the path if the URL has no fragment": {
18-
"status": "PASS"
18+
"status": "FAIL"
1919
},
2020
"Two-argument delete()": {
2121
"status": "FAIL"

tests/wpt-harness/wpt

Submodule wpt updated 1384 files

0 commit comments

Comments
 (0)