LibWeb: Implement value argument of URLSearchParams.has

This commit is contained in:
Shannon Booth 2024-08-10 23:52:54 +12:00 committed by Tim Ledbetter
commit 264b5160c2
Notes: github-actions[bot] 2024-08-12 22:02:45 +00:00
5 changed files with 41 additions and 8 deletions

View file

@ -0,0 +1,11 @@
<script src="../include.js"></script>
<script>
test(() => {
const params = new URLSearchParams('animal=octopus&place=ocean');
println(params.has('non-existing-key'));
println(params.has('animal'));
println(params.has('place', 'non-existing-value'));
println(params.has('place', 'ocean'));
println(params.has('animal', 'ocean'));
});
</script>