Skip to content

Truly independent web browser

Tests/LibWeb: Read display list traces once their frame has landed

Jelle Raaijmakers67d295f4ffd2
diff --git a/Tests/LibWeb/Text/input/display_list/hit-test-recording-then-next-frame-records-again.html b/Tests/LibWeb/Text/input/display_list/hit-test-recording-then-next-frame-records-again.html
index 95d044c13ce..43c0545972f 100644
--- a/Tests/LibWeb/Text/input/display_list/hit-test-recording-then-next-frame-records-again.html
+++ b/Tests/LibWeb/Text/input/display_list/hit-test-recording-then-next-frame-records-again.html
@@ -11,6 +11,8 @@
const settle = async () => {
await nextFrame();
await nextFrame();
+ do await new Promise(resolve => setTimeout(resolve));
+ while (internals.frameSchedulerState() !== "idle");
};
const recordingCount = () => (internals.takeDisplayListTrace().match(/^recording /gm) ?? []).length;
// Printing changes the document and would invalidate the recording under test.