mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
Tests: Add test for selection option in <select>
Verify that we can select option using JS
This commit is contained in:
committed by
Sam Atkins
parent
ad7b2b7c26
commit
1ce9bbdd6d
Notes:
github-actions[bot]
2024-07-26 08:16:34 +00:00
Author: https://github.com/TSultanov Commit: https://github.com/LadybirdBrowser/ladybird/commit/1ce9bbdd6dc Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/832 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -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>
|
||||
Reference in New Issue
Block a user