-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR-URL: #12507 Refs: web-platform-tests/wpt#4586 Refs: #11887 Reviewed-By: James M Snell <[email protected]>
- Loading branch information
Showing
2 changed files
with
90 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,15 +34,15 @@ module.exports = | |
"href": "a://example.net", | ||
"new_value": "", | ||
"expected": { | ||
"href": "a://example.net/", | ||
"href": "a://example.net", | ||
"protocol": "a:" | ||
} | ||
}, | ||
{ | ||
"href": "a://example.net", | ||
"new_value": "b", | ||
"expected": { | ||
"href": "b://example.net/", | ||
"href": "b://example.net", | ||
"protocol": "b:" | ||
} | ||
}, | ||
|
@@ -59,7 +59,7 @@ module.exports = | |
"href": "a://example.net", | ||
"new_value": "B", | ||
"expected": { | ||
"href": "b://example.net/", | ||
"href": "b://example.net", | ||
"protocol": "b:" | ||
} | ||
}, | ||
|
@@ -68,7 +68,7 @@ module.exports = | |
"href": "a://example.net", | ||
"new_value": "é", | ||
"expected": { | ||
"href": "a://example.net/", | ||
"href": "a://example.net", | ||
"protocol": "a:" | ||
} | ||
}, | ||
|
@@ -77,7 +77,7 @@ module.exports = | |
"href": "a://example.net", | ||
"new_value": "0b", | ||
"expected": { | ||
"href": "a://example.net/", | ||
"href": "a://example.net", | ||
"protocol": "a:" | ||
} | ||
}, | ||
|
@@ -86,15 +86,15 @@ module.exports = | |
"href": "a://example.net", | ||
"new_value": "+b", | ||
"expected": { | ||
"href": "a://example.net/", | ||
"href": "a://example.net", | ||
"protocol": "a:" | ||
} | ||
}, | ||
{ | ||
"href": "a://example.net", | ||
"new_value": "bC0+-.", | ||
"expected": { | ||
"href": "bc0+-.://example.net/", | ||
"href": "bc0+-.://example.net", | ||
"protocol": "bc0+-.:" | ||
} | ||
}, | ||
|
@@ -103,7 +103,7 @@ module.exports = | |
"href": "a://example.net", | ||
"new_value": "b,c", | ||
"expected": { | ||
"href": "a://example.net/", | ||
"href": "a://example.net", | ||
"protocol": "a:" | ||
} | ||
}, | ||
|
@@ -112,7 +112,7 @@ module.exports = | |
"href": "a://example.net", | ||
"new_value": "bé", | ||
"expected": { | ||
"href": "a://example.net/", | ||
"href": "a://example.net", | ||
"protocol": "a:" | ||
} | ||
}, | ||
|
@@ -213,23 +213,31 @@ module.exports = | |
"href": "ssh://[email protected]", | ||
"new_value": "http", | ||
"expected": { | ||
"href": "ssh://[email protected]/", | ||
"href": "ssh://[email protected]", | ||
"protocol": "ssh:" | ||
} | ||
}, | ||
{ | ||
"href": "ssh://[email protected]", | ||
"new_value": "gopher", | ||
"expected": { | ||
"href": "ssh://[email protected]/", | ||
"href": "ssh://[email protected]", | ||
"protocol": "ssh:" | ||
} | ||
}, | ||
{ | ||
"href": "ssh://[email protected]", | ||
"new_value": "file", | ||
"expected": { | ||
"href": "ssh://[email protected]/", | ||
"href": "ssh://[email protected]", | ||
"protocol": "ssh:" | ||
} | ||
}, | ||
{ | ||
"href": "ssh://example.net", | ||
"new_value": "file", | ||
"expected": { | ||
"href": "ssh://example.net", | ||
"protocol": "ssh:" | ||
} | ||
}, | ||
|
@@ -1585,6 +1593,33 @@ module.exports = | |
"href": "http://example.net/%3F", | ||
"pathname": "/%3F" | ||
} | ||
}, | ||
{ | ||
"comment": "# needs to be encoded", | ||
"href": "http://example.net", | ||
"new_value": "#", | ||
"expected": { | ||
"href": "http://example.net/%23", | ||
"pathname": "/%23" | ||
} | ||
}, | ||
{ | ||
"comment": "? needs to be encoded, non-special scheme", | ||
"href": "sc://example.net", | ||
"new_value": "?", | ||
"expected": { | ||
"href": "sc://example.net/%3F", | ||
"pathname": "/%3F" | ||
} | ||
}, | ||
{ | ||
"comment": "# needs to be encoded, non-special scheme", | ||
"href": "sc://example.net", | ||
"new_value": "#", | ||
"expected": { | ||
"href": "sc://example.net/%23", | ||
"pathname": "/%23" | ||
} | ||
} | ||
], | ||
"search": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters