diff --git a/test/fixtures/wpt/url/resources/IdnaTestV2.json b/test/fixtures/wpt/url/resources/IdnaTestV2.json index ed4d433ebeeb..be363124a6ad 100644 --- a/test/fixtures/wpt/url/resources/IdnaTestV2.json +++ b/test/fixtures/wpt/url/resources/IdnaTestV2.json @@ -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" }, @@ -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 }, @@ -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", diff --git a/test/fixtures/wpt/url/url-setters-stripping.any.js b/test/fixtures/wpt/url/url-setters-stripping.any.js index ac90cc17e0bf..ff91aea87252 100644 --- a/test/fixtures/wpt/url/url-setters-stripping.any.js +++ b/test/fixtures/wpt/url/url-setters-stripping.any.js @@ -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}:)`); + } + } } } diff --git a/test/fixtures/wpt/versions.json b/test/fixtures/wpt/versions.json index 33c38735174e..088d8c8d5174 100644 --- a/test/fixtures/wpt/versions.json +++ b/test/fixtures/wpt/versions.json @@ -76,7 +76,7 @@ "path": "streams" }, "url": { - "commit": "c48d58747e1f211527fb695fd60548a997fae617", + "commit": "b1a3daad996272add733ff1c420bf48049a5b698", "path": "url" }, "urlpattern": {