diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-10-28 00:07:02 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-10-28 00:09:26 +0100 |
| commit | 64504d633d55074f902eda041b7c720d305d5338 (patch) | |
| tree | 9e1629319b9db061598d17969d9e6af929e08747 /test | |
| parent | 314c91d62441415d175aa366764754eb64efa4f7 (diff) | |
| download | chawan-64504d633d55074f902eda041b7c720d305d5338.tar.gz | |
url: add searchParams.has
Diffstat (limited to 'test')
| -rw-r--r-- | test/js/url.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/js/url.html b/test/js/url.html index 48e68083..58d2ad7b 100644 --- a/test/js/url.html +++ b/test/js/url.html @@ -66,6 +66,9 @@ assert_equals(new URL("https://xn--zckzah") + "", "https://xn--zckzah/"); assert_equals(x.hash, "#hash"); x.searchParams.delete("search"); assert_equals(x.search, ""); + x.searchParams.append("hi", "world"); + assert(x.searchParams.has("hi")); + assert(x.searchParams.has("hi", "world")); } document.getElementById("x").textContent = "Success"; </script> |