mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Implement value argument of URLSearchParams.delete
This commit is contained in:
committed by
Tim Ledbetter
parent
e2fb24c9b8
commit
5637dc43b2
Notes:
github-actions[bot]
2024-08-12 22:02:50 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/5637dc43b2d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1033 Reviewed-by: https://github.com/tcl3 ✅
15
Tests/LibWeb/Text/input/URL/search-params-delete.html
Normal file
15
Tests/LibWeb/Text/input/URL/search-params-delete.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
const params = new URLSearchParams('animal=octopus&place=ocean');
|
||||
println(params.toString());
|
||||
params.delete('non-existing-key');
|
||||
println(params.toString());
|
||||
params.delete('animal');
|
||||
println(params.toString());
|
||||
params.delete('place', 'non-existing-value');
|
||||
println(params.toString());
|
||||
params.delete('place', 'ocean');
|
||||
println(params.toString());
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user