Skip to content

Commit

Permalink
Merge pull request #5813 from w3c/sync_54c3502d7b5e443777e808a88d35b8…
Browse files Browse the repository at this point in the history
…2ab1a7b6fa

Add a test for URLSearchParams handling of non-ASCII keys in the record<> ctor,
  • Loading branch information
jgraham authored May 5, 2017
2 parents 01534c0 + 54c3502 commit 96612a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion url/urlsearchparams-constructor.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@
[
{ "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": [["c", "x"], ["a", "?"]], "output": [["c", "x"], ["a", "?"]], "name": "array with two keys" },
{ "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(() => {
let params = new URLSearchParams(val.input),
Expand Down

0 comments on commit 96612a8

Please sign in to comment.