Skip to content

Truly independent web browser

Tests/LibWeb: Apply an animation seek before counting frame requests

Tim Ledbetter2e9126180d81
diff --git a/Tests/LibWeb/Text/input/css/invisible-animation-style-throttling.html b/Tests/LibWeb/Text/input/css/invisible-animation-style-throttling.html
index ef4da50973d..a28ddd39707 100644
--- a/Tests/LibWeb/Text/input/css/invisible-animation-style-throttling.html
+++ b/Tests/LibWeb/Text/input/css/invisible-animation-style-throttling.html
@@ -39,6 +39,7 @@
let animationIterationEvents = 0;
const animationIterationListener = () => ++animationIterationEvents;
hidden.addEventListener("animationiteration", animationIterationListener);
+ internals.updateLayoutForTesting();
internals.resetStyleInvalidationCounters();
await animationOverlayBuildsOverFrames(4);
println(`animation event listener uses iteration wake-ups: ${internals.getStyleInvalidationCounters().animationFramePumpRequests === 0 && internals.getStyleInvalidationCounters().compositorAnimationWakeupTimerActive}`);