Skip to content

Commit 76991c0

Browse files
watildetargos
authored andcommitted
test: add upstream test cases to urlsearchparam
Refs: web-platform-tests/wpt#26126 PR-URL: #35792 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 092c6c4 commit 76991c0

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Diff for: test/fixtures/wpt/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Last update:
1212

1313
- console: https://github.com/web-platform-tests/wpt/tree/3b1f72e99a/console
1414
- encoding: https://github.com/web-platform-tests/wpt/tree/d7f9e16c9a/encoding
15-
- url: https://github.com/web-platform-tests/wpt/tree/33e4ac0902/url
15+
- url: https://github.com/web-platform-tests/wpt/tree/54c6d64be0/url
1616
- resources: https://github.com/web-platform-tests/wpt/tree/1d14e821b9/resources
1717
- interfaces: https://github.com/web-platform-tests/wpt/tree/15e47f779c/interfaces
1818
- html/webappapis/microtask-queuing: https://github.com/web-platform-tests/wpt/tree/2c5c3c4c27/html/webappapis/microtask-queuing

Diff for: test/fixtures/wpt/url/urlsearchparams-constructor.any.js

+2
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ test(function() {
200200
{ "input": {"+": "%C2"}, "output": [["+", "%C2"]], "name": "object with +" },
201201
{ "input": {c: "x", a: "?"}, "output": [["c", "x"], ["a", "?"]], "name": "object with two keys" },
202202
{ "input": [["c", "x"], ["a", "?"]], "output": [["c", "x"], ["a", "?"]], "name": "array with two keys" },
203+
{ "input": {"\uD835x": "1", "xx": "2", "\uD83Dx": "3"}, "output": [["\uFFFDx", "3"], ["xx", "2"]], "name": "2 unpaired surrogates (no trailing)" },
204+
{ "input": {"x\uDC53": "1", "x\uDC5C": "2", "x\uDC65": "3"}, "output": [["x\uFFFD", "3"]], "name": "3 unpaired surrogates (no leading)" },
203205
{ "input": {"a\0b": "42", "c\uD83D": "23", "d\u1234": "foo"}, "output": [["a\0b", "42"], ["c\uFFFD", "23"], ["d\u1234", "foo"]], "name": "object with NULL, non-ASCII, and surrogate keys" }
204206
].forEach((val) => {
205207
test(() => {

Diff for: test/fixtures/wpt/versions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"path": "encoding"
99
},
1010
"url": {
11-
"commit": "33e4ac09029c463ea6ee57d6f33477a9043e98e8",
11+
"commit": "54c6d64be071c60baaad8c4da0365b962ffbe77c",
1212
"path": "url"
1313
},
1414
"resources": {

0 commit comments

Comments
 (0)