Skip to content

Commit dd45ccc

Browse files
alwinbziransun
authored andcommitted
Changes URL tests for file path normalization proposal
For whatwg/url#544.
1 parent d2a31ad commit dd45ccc

File tree

2 files changed

+188
-61
lines changed

2 files changed

+188
-61
lines changed

url/resources/setters_tests.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,26 +1672,26 @@
16721672
"href": "file://monkey/",
16731673
"new_value": "\\\\",
16741674
"expected": {
1675-
"href": "file://monkey/",
1676-
"pathname": "/"
1675+
"href": "file://monkey//",
1676+
"pathname": "//"
16771677
}
16781678
},
16791679
{
16801680
"comment": "File URLs and (back)slashes",
16811681
"href": "file:///unicorn",
16821682
"new_value": "//\\/",
16831683
"expected": {
1684-
"href": "file:///",
1685-
"pathname": "/"
1684+
"href": "file://////",
1685+
"pathname": "////"
16861686
}
16871687
},
16881688
{
16891689
"comment": "File URLs and (back)slashes",
16901690
"href": "file:///unicorn",
16911691
"new_value": "//monkey/..//",
16921692
"expected": {
1693-
"href": "file:///",
1694-
"pathname": "/"
1693+
"href": "file://///",
1694+
"pathname": "///"
16951695
}
16961696
},
16971697
{

0 commit comments

Comments
 (0)