Skip to content

Commit

Permalink
Changes URL tests for file path normalization proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
alwinb authored and ziransun committed Oct 6, 2020
1 parent d2a31ad commit dd45ccc
Show file tree
Hide file tree
Showing 2 changed files with 188 additions and 61 deletions.
12 changes: 6 additions & 6 deletions url/resources/setters_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -1672,26 +1672,26 @@
"href": "file://monkey/",
"new_value": "\\\\",
"expected": {
"href": "file://monkey/",
"pathname": "/"
"href": "file://monkey//",
"pathname": "//"
}
},
{
"comment": "File URLs and (back)slashes",
"href": "file:///unicorn",
"new_value": "//\\/",
"expected": {
"href": "file:///",
"pathname": "/"
"href": "file://////",
"pathname": "////"
}
},
{
"comment": "File URLs and (back)slashes",
"href": "file:///unicorn",
"new_value": "//monkey/..//",
"expected": {
"href": "file:///",
"pathname": "/"
"href": "file://///",
"pathname": "///"
}
},
{
Expand Down
Loading

0 comments on commit dd45ccc

Please sign in to comment.