mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 14:20:21 +00:00
LibWeb: Implement value argument of URLSearchParams.has
This commit is contained in:
parent
5637dc43b2
commit
264b5160c2
Notes:
github-actions[bot]
2024-08-12 22:02:45 +00:00
Author: https://github.com/shannonbooth
Commit: 264b5160c2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1033
Reviewed-by: https://github.com/tcl3 ✅
5 changed files with 41 additions and 8 deletions
11
Tests/LibWeb/Text/input/URL/search-params-has.html
Normal file
11
Tests/LibWeb/Text/input/URL/search-params-has.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue