Newer
Older
minerva / Tests / LibWeb / Text / input / HTML / HTMLSelectElement-can-select-option-in-JS.html
@minerva minerva on 13 Jul 346 bytes Initial commit
<!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>