Truly independent web browser
Tests/LibWeb: Wait for a revived animation to run for 100 ms
Jelle Raaijmakers9699e88ec609
diff --git a/Tests/LibWeb/Text/input/css/revived-cancelled-animations.html b/Tests/LibWeb/Text/input/css/revived-cancelled-animations.htmlindex 3710619cac9..91b2e9a8e5c 100644--- a/Tests/LibWeb/Text/input/css/revived-cancelled-animations.html+++ b/Tests/LibWeb/Text/input/css/revived-cancelled-animations.html@@ -80,7 +80,9 @@animation.startTime = document.timeline.currentTime - 50000;await frames(2);const before = getComputedStyle(element).marginLeft;- await frames(10);+ const timeBefore = document.timeline.currentTime;+ while (document.timeline.currentTime - timeBefore < 100)+ await frames(1);println(`setting the start time of a cancelled animation makes it run again: ${element.getAnimations().length === 1 && getComputedStyle(element).marginLeft !== before}`);animation.cancel();element.remove();