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 Sep 30, 2020
1 parent a1d3637 commit 050308a
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 050308a

Please sign in to comment.