Truly independent web browser
Tests/LibWeb: Wait for the frame in the kept scrolls test
Andreas Klingd6e1e269642c
diff --git a/Tests/LibWeb/Text/input/async-scrolling/box-that-keeps-its-scrolls-is-a-scroll-node.html b/Tests/LibWeb/Text/input/async-scrolling/box-that-keeps-its-scrolls-is-a-scroll-node.htmlindex 331d5d867c1..cf48cb33a12 100644--- a/Tests/LibWeb/Text/input/async-scrolling/box-that-keeps-its-scrolls-is-a-scroll-node.html+++ b/Tests/LibWeb/Text/input/async-scrolling/box-that-keeps-its-scrolls-is-a-scroll-node.html@@ -62,7 +62,9 @@// The compositor scrolls a gesture the box keeps by nothing, and the page stays where it was.box.style.overscrollBehavior = "contain";- await waitForCondition(() => internals.compositorWheelTargetAt(...besideTheScroller, 0, -50).decision === "no-scroll-target");+ await animationFrame();+ await animationFrame();+ internals.synchronizeCompositor();internals.beginInputTrace();await internals.wheelThroughUIProcess(...besideTheScroller, 0, -50, true, "ongoing");await internals.wheelThroughUIProcess(...besideTheScroller, 0, 0, true, "ended");