Skip to content

Truly independent web browser

Tests/LibWeb: Wait for the keyboard scroll test's last frame to land

Jelle Raaijmakersb4b975c8f0e3
diff --git a/Tests/LibWeb/Text/input/HTML/frame-in-flight/recording-flight-keyboard-scroll-state.html b/Tests/LibWeb/Text/input/HTML/frame-in-flight/recording-flight-keyboard-scroll-state.html
index 16b8e59e751..3d9ba222216 100644
--- a/Tests/LibWeb/Text/input/HTML/frame-in-flight/recording-flight-keyboard-scroll-state.html
+++ b/Tests/LibWeb/Text/input/HTML/frame-in-flight/recording-flight-keyboard-scroll-state.html
@@ -25,6 +25,8 @@
});
box.firstChild.data = "third";
await twoFrames();
+ while (internals.frameSchedulerState() !== "idle")
+ await nextTask();
println(`flight presented by: ${afterFlight.presentedBy}`);
println(`current after the flight: ${afterFlight.current}`);
println(`current after the next frame: ${internals.lastFrameKeyboardScrollStateIsCurrent()}`);