Truly independent web browser
Tests/LibWeb: Wait for fonts before a visual-context test’s steps
sideshowbarker6c7e98709b6d
diff --git a/Tests/LibWeb/Text/input/visual-context/resolved-effect-output-clip-updates.html b/Tests/LibWeb/Text/input/visual-context/resolved-effect-output-clip-updates.htmlindex c22228fa236..fd4e6ea3d52 100644--- a/Tests/LibWeb/Text/input/visual-context/resolved-effect-output-clip-updates.html+++ b/Tests/LibWeb/Text/input/visual-context/resolved-effect-output-clip-updates.html@@ -35,6 +35,9 @@visualContextTest({setup: async () => {internals.forceIncompatibleVisualContextTreeRebuild();+ // A rendering update can commit a recording before it resolves the fonts, so wait for them first: A recording+ // still in flight as the steps begin would free a released slot when a step takes it in.+ await document.fonts.ready;while (internals.frameSchedulerState() !== "idle")await new Promise(resolve => setTimeout(resolve, 0));},