ladybird/Tests/LibWeb/Text/input/selection-over-multiple-code-units.html
Jelle Raaijmakers 1eb581815a Tests: Unskip selection-over-multiple-code-units.html test
The flake was reproducible by running the entire LibWeb test suite over
and over again with sanitizers enabled. By making the test async and run
at window `load` time instead of document `DOMContentLoaded` time, I've
not been able to reproduce the issue locally.

Ideally I was able to find the underlying cause for this bug, but for
now I'd rather run this regression test.
2025-07-03 10:27:39 +01:00

19 lines
503 B
HTML

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