mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03: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: 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 @@
|
||||
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…
Reference in New Issue
Block a user