2025-06-12 13:19:52 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<script src="include.js"></script>
|
|
|
|
|
ðŸ˜foobarðŸ˜
|
|
|
|
|
<script>
|
2025-07-02 13:07:57 +02:00
|
|
|
asyncTest(done => {
|
|
|
|
|
window.addEventListener('load', () => {
|
|
|
|
|
internals.mouseDown(55, 20);
|
|
|
|
|
internals.movePointerTo(110, 20);
|
2025-06-18 10:06:11 +02:00
|
|
|
|
2025-07-02 13:07:57 +02:00
|
|
|
const activeRange = window.getSelection().getRangeAt(0);
|
|
|
|
|
printElement(activeRange.startContainer);
|
|
|
|
|
println(activeRange.startOffset);
|
|
|
|
|
printElement(activeRange.endContainer);
|
|
|
|
|
println(activeRange.endOffset);
|
2025-06-12 13:19:52 +02:00
|
|
|
|
2025-07-02 13:07:57 +02:00
|
|
|
done();
|
|
|
|
|
});
|
2025-06-12 13:19:52 +02:00
|
|
|
});
|
|
|
|
|
</script>
|