From 7472536ecb187c417e17f771446add880ca95a77 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Wed, 27 Mar 2024 18:47:35 -0700 Subject: [PATCH] LibWeb: Add a test for Animation.finish() --- .../animation-methods/finish.txt | 8 +++ .../animation-methods/finish.html | 63 +++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 Tests/LibWeb/Text/expected/WebAnimations/animation-methods/finish.txt create mode 100644 Tests/LibWeb/Text/input/WebAnimations/animation-methods/finish.html diff --git a/Tests/LibWeb/Text/expected/WebAnimations/animation-methods/finish.txt b/Tests/LibWeb/Text/expected/WebAnimations/animation-methods/finish.txt new file mode 100644 index 00000000000..a29c04921a1 --- /dev/null +++ b/Tests/LibWeb/Text/expected/WebAnimations/animation-methods/finish.txt @@ -0,0 +1,8 @@ + Cannot finish an animation with no effective playback rate +Cannot finish an animation with an infinite effect end +finish() updates animation's pending playback rate +finish() updates currentTime of animation with positive playback rate +finish() updates currentTime of animation with negative playback rate +finish() updates animation's startTime +finish() sends an onfinish event +finish() recreated the animation's finished promise diff --git a/Tests/LibWeb/Text/input/WebAnimations/animation-methods/finish.html b/Tests/LibWeb/Text/input/WebAnimations/animation-methods/finish.html new file mode 100644 index 00000000000..63f963d0948 --- /dev/null +++ b/Tests/LibWeb/Text/input/WebAnimations/animation-methods/finish.html @@ -0,0 +1,63 @@ + +
+ +