mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
Tests: Add test for selection option in <select>
Verify that we can select option using JS
This commit is contained in:
parent
ad7b2b7c26
commit
1ce9bbdd6d
Notes:
github-actions[bot]
2024-07-26 08:16:34 +00:00
Author: https://github.com/TSultanov
Commit: 1ce9bbdd6d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/832
Reviewed-by: https://github.com/AtkinsSJ ✅
2 changed files with 17 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
B PASS
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<select id="select-test">
|
||||
<option>A</option>
|
||||
<option>B</option>
|
||||
</select>
|
||||
<script>
|
||||
test(() => {
|
||||
const s = document.getElementById("select-test");
|
||||
|
||||
s.options[1].selected = true;
|
||||
if(s.value === "B") {
|
||||
println("PASS");
|
||||
}
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue