LibWeb: Try to fix a flaky animation test

Not sure if this'll fix it fully, as the flake has only ever been
observed on CI.
This commit is contained in:
Matthew Olsson 2024-06-01 11:24:31 -07:00 committed by Andreas Kling
parent 73aadddbc1
commit 0acf89234c

View file

@ -16,6 +16,10 @@
println(`Animation's replaceState is not removed after creating new animation: ${animation1.replaceState === "active"}`);
await animation2.finished;
// This shouldn't be necessary, but this test has been a bit flaky on CI, so this should hopefully make the test more reliable
await animationFrame();
println(`Animation's replaceState is removed after new animation finishes: ${animation1.replaceState === "removed"}`);
});
</script>