about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-09-30 21:55:16 +0200
committerbptato <nincsnevem662@gmail.com>2024-09-30 21:56:32 +0200
commit9eb459ad095aa3fb30d967359e0bc6846262f6ea (patch)
tree1097a34056f416c7accce42299a7e654bc9288dd /test
parent7870b9aa5d32b5b3c938be205f9ba49fd4e4734f (diff)
downloadchawan-9eb459ad095aa3fb30d967359e0bc6846262f6ea.tar.gz
url: fix searchParams.delete
Diffstat (limited to 'test')
-rw-r--r--test/js/url.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/js/url.html b/test/js/url.html
index 809718f7..0a6e0b9e 100644
--- a/test/js/url.html
+++ b/test/js/url.html
@@ -62,6 +62,8 @@ assert_equals(new URL("abcd?efgh#ijkl", "https://example.com/") + "", "https://e
 	assert_equals(x.pathname, "/path");
 	assert_equals(x.search, "?search");
 	assert_equals(x.hash, "#hash");
+	x.searchParams.delete("search");
+	assert_equals(x.search, "");
 }
 document.getElementById("x").textContent = "Success";
 </script>