Files
ladybird/Tests/LibWeb/Text/input/selection-over-multiple-code-units.html
Jelle Raaijmakers f55fe69d4d LibWeb: Rework Internals' mouse control
Instead of defining somewhat high level mouse actions, allow granular
control of mouse clicks and mouse down/up/move events. We will want to
simulate things like holding down a mouse button after double clicking
and then dragging the mouse to another position in the future, and this
enables that.
2026-02-06 14:18:10 +00:00

20 lines
499 B
HTML

<!DOCTYPE html>
<script src="include.js"></script>
😭foobar😭
<script>
asyncTest(done => {
window.addEventListener('load', () => {
internals.mouseDown(55, 20);
internals.mouseMove(110, 20);
const activeRange = window.getSelection().getRangeAt(0);
printElement(activeRange.startContainer);
println(activeRange.startOffset);
printElement(activeRange.endContainer);
println(activeRange.endOffset);
done();
});
});
</script>