2025-03-18 15:28:35 -03:00
|
|
|
<!DOCTYPE html>
|
2023-11-30 14:54:30 -03:00
|
|
|
<input id=input type=text>
|
|
|
|
|
<script src="include.js"></script>
|
|
|
|
|
<script>
|
2023-12-03 10:21:58 -03:00
|
|
|
test(() => {
|
2023-11-30 14:54:30 -03:00
|
|
|
let input = document.getElementById("input");
|
|
|
|
|
|
|
|
|
|
input.addEventListener("change", () => {
|
|
|
|
|
println(input.value);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
internals.sendText(input, "wfh :^)");
|
|
|
|
|
internals.commitText();
|
2025-03-21 12:35:42 -03:00
|
|
|
|
|
|
|
|
// A second commit should not result in a change event.
|
|
|
|
|
internals.commitText();
|
2023-11-30 14:54:30 -03:00
|
|
|
})
|
|
|
|
|
</script>
|