mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
test: add upstream test cases to urlsearchparam
Refs: https://github.com/web-platform-tests/wpt/pull/26126 PR-URL: https://github.com/nodejs/node/pull/35792 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
245ec6f5ab
commit
f9c9c216cc
3 files changed
+4
-2
No files matched your search
Vendored
+1
-1
@@ -12,7 +12,7 @@ Last update:
|
||||
|
||||
- console: https://github.com/web-platform-tests/wpt/tree/3b1f72e99a/console
|
||||
- encoding: https://github.com/web-platform-tests/wpt/tree/d7f9e16c9a/encoding
|
||||
- url: https://github.com/web-platform-tests/wpt/tree/33e4ac0902/url
|
||||
- url: https://github.com/web-platform-tests/wpt/tree/54c6d64be0/url
|
||||
- resources: https://github.com/web-platform-tests/wpt/tree/1d14e821b9/resources
|
||||
- interfaces: https://github.com/web-platform-tests/wpt/tree/15e47f779c/interfaces
|
||||
- html/webappapis/microtask-queuing: https://github.com/web-platform-tests/wpt/tree/2c5c3c4c27/html/webappapis/microtask-queuing
|
||||
|
||||
@@ -200,6 +200,8 @@ test(function() {
|
||||
{ "input": {"+": "%C2"}, "output": [["+", "%C2"]], "name": "object with +" },
|
||||
{ "input": {c: "x", a: "?"}, "output": [["c", "x"], ["a", "?"]], "name": "object with two keys" },
|
||||
{ "input": [["c", "x"], ["a", "?"]], "output": [["c", "x"], ["a", "?"]], "name": "array with two keys" },
|
||||
{ "input": {"\uD835x": "1", "xx": "2", "\uD83Dx": "3"}, "output": [["\uFFFDx", "3"], ["xx", "2"]], "name": "2 unpaired surrogates (no trailing)" },
|
||||
{ "input": {"x\uDC53": "1", "x\uDC5C": "2", "x\uDC65": "3"}, "output": [["x\uFFFD", "3"]], "name": "3 unpaired surrogates (no leading)" },
|
||||
{ "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" }
|
||||
].forEach((val) => {
|
||||
test(() => {
|
||||
|
||||
Vendored
+1
-1
@@ -8,7 +8,7 @@
|
||||
"path": "encoding"
|
||||
},
|
||||
"url": {
|
||||
"commit": "33e4ac09029c463ea6ee57d6f33477a9043e98e8",
|
||||
"commit": "54c6d64be071c60baaad8c4da0365b962ffbe77c",
|
||||
"path": "url"
|
||||
},
|
||||
"resources": {
|
||||
|
||||
Reference in new issue
Block a user