mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-27 03:10:01 +00:00
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.
19 lines
503 B
HTML
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>
|