Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 38 additions & 22 deletions test/fixtures/wpt/url/resources/IdnaTestV2.json
Original file line number Diff line number Diff line change
Expand Up @@ -7048,22 +7048,33 @@
"output": "j"
},
{
"comment": "C1; V7",
"comment": "C1",
"input": "\u10ad\ud8be\udccd\ua868\u05ae\u3002\u10be\u200c\u200c",
"output": null
},
{
"comment": "C1; V7",
"comment": "C1",
"input": "\u2d0d\ud8be\udccd\ua868\u05ae\u3002\u2d1e\u200c\u200c",
"output": null
},
{
"comment": "V7",
"input": "xn--5cb172r175fug38a.xn--mlj",
"output": "xn--5cb172r175fug38a.xn--mlj"
},
{
"comment": "C1; V7",
"input": "\u2d0d\ud8be\udccd\ua868\u05ae.\u2d1e",
"output": "xn--5cb172r175fug38a.xn--mlj"
},
{
"input": "\u10ad\ud8be\udccd\ua868\u05ae.\u10be",
"output": "xn--5cb172r175fug38a.xn--mlj"
},
{
"input": "\u10ad\ud8be\udccd\ua868\u05ae.\u2d1e",
"output": "xn--5cb172r175fug38a.xn--mlj"
},
{
"comment": "C1",
"input": "xn--5cb172r175fug38a.xn--0uga051h",
"output": "xn--5cb172r175fug38a.xn--0uga051h"
},
Expand Down Expand Up @@ -8238,67 +8249,67 @@
"output": "xn--ep37b.xn----hec165lho83b"
},
{
"comment": "C2; V6; V7",
"comment": "C2; V6",
"input": "\ud8bc\udc2b\uff0e\u1baa\u03c2\u10a6\u200d",
"output": null
},
{
"comment": "C2; V6; V7",
"comment": "C2; V6",
"input": "\ud8bc\udc2b.\u1baa\u03c2\u10a6\u200d",
"output": null
},
{
"comment": "C2; V6; V7",
"comment": "C2; V6",
"input": "\ud8bc\udc2b.\u1baa\u03c2\u2d06\u200d",
"output": null
},
{
"comment": "C2; V6; V7",
"comment": "C2; V6",
"input": "\ud8bc\udc2b.\u1baa\u03a3\u10a6\u200d",
"output": null
},
{
"comment": "C2; V6; V7",
"comment": "C2; V6",
"input": "\ud8bc\udc2b.\u1baa\u03c3\u2d06\u200d",
"output": null
},
{
"comment": "C2; V6; V7",
"comment": "C2; V6",
"input": "\ud8bc\udc2b.\u1baa\u03a3\u2d06\u200d",
"output": null
},
{
"comment": "V6; V7",
"comment": "V6",
"input": "xn--nu4s.xn--4xa153j7im",
"output": "xn--nu4s.xn--4xa153j7im"
},
{
"comment": "C2; V6; V7",
"comment": "C2; V6",
"input": "xn--nu4s.xn--4xa153jk8cs1q",
"output": "xn--nu4s.xn--4xa153jk8cs1q"
},
{
"comment": "C2; V6; V7",
"comment": "C2; V6",
"input": "xn--nu4s.xn--3xa353jk8cs1q",
"output": "xn--nu4s.xn--3xa353jk8cs1q"
},
{
"comment": "C2; V6; V7",
"comment": "C2; V6",
"input": "\ud8bc\udc2b\uff0e\u1baa\u03c2\u2d06\u200d",
"output": null
},
{
"comment": "C2; V6; V7",
"comment": "C2; V6",
"input": "\ud8bc\udc2b\uff0e\u1baa\u03a3\u10a6\u200d",
"output": null
},
{
"comment": "C2; V6; V7",
"comment": "C2; V6",
"input": "\ud8bc\udc2b\uff0e\u1baa\u03c3\u2d06\u200d",
"output": null
},
{
"comment": "C2; V6; V7",
"comment": "C2; V6",
"input": "\ud8bc\udc2b\uff0e\u1baa\u03a3\u2d06\u200d",
"output": null
},
Expand Down Expand Up @@ -11936,20 +11947,25 @@
"output": null
},
{
"comment": "V7",
"input": "\ud8ba\udcac\u3002\u0729\u3002\ucbd95",
"output": null
"output": "xn--t92s.xn--znb.xn--5-y88f"
},
{
"comment": "V7",
"input": "\ud8ba\udcac\u3002\u0729\u3002\u110d\u1173\u11ac5",
"output": null
"output": "xn--t92s.xn--znb.xn--5-y88f"
},
{
"comment": "V7",
"input": "xn--t92s.xn--znb.xn--5-y88f",
"output": "xn--t92s.xn--znb.xn--5-y88f"
},
{
"input": "\ud8ba\udcac.\u0729.\ucbd95",
"output": "xn--t92s.xn--znb.xn--5-y88f"
},
{
"input": "\ud8ba\udcac.\u0729.\u110d\u1173\u11ac5",
"output": "xn--t92s.xn--znb.xn--5-y88f"
},
{
"comment": "C2; V6",
"input": "\u17ca.\u200d\ud835\udfee\ud804\udc3f",
Expand Down
21 changes: 21 additions & 0 deletions test/fixtures/wpt/url/url-setters-stripping.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,26 @@ for(const scheme of ["https", "wpt++"]) {
}, `Setting ${property} with ${type} ${cpReference} (${scheme}:)`);
}
}

// searchParams has to reflect the resulting query, also when it was obtained before setting
// search
for (const [type, input] of [
["leading", String.fromCodePoint(i) + "test"],
["middle", "te" + String.fromCodePoint(i) + "st"],
["trailing", "test" + String.fromCodePoint(i)]
]) {
for (const searchParamsFirst of [false, true]) {
test(() => {
const expected = stripped ? "test" : input;
const url = urlRecord(scheme);
if (searchParamsFirst) {
url.searchParams;
}
url.search = input;
assert_array_equals([...url.searchParams.keys()], [expected], "keys");
assert_array_equals([...url.searchParams.values()], [""], "values");
}, `Setting search with ${type} ${cpReference} updates ${searchParamsFirst ? "previously obtained " : ""}searchParams (${scheme}:)`);
}
}
}
}
2 changes: 1 addition & 1 deletion test/fixtures/wpt/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"path": "streams"
},
"url": {
"commit": "c48d58747e1f211527fb695fd60548a997fae617",
"commit": "b1a3daad996272add733ff1c420bf48049a5b698",
"path": "url"
},
"urlpattern": {
Expand Down
Loading