From c22055941af7c3c281e3b8fac67fd9fb60555868 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Thu, 28 Mar 2024 15:29:55 +0000 Subject: [PATCH] LibWeb: Add a test for Animation.reverse() --- .../animation-methods/reverse.txt | 4 ++ .../animation-methods/reverse.html | 44 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 Tests/LibWeb/Text/expected/WebAnimations/animation-methods/reverse.txt create mode 100644 Tests/LibWeb/Text/input/WebAnimations/animation-methods/reverse.html diff --git a/Tests/LibWeb/Text/expected/WebAnimations/animation-methods/reverse.txt b/Tests/LibWeb/Text/expected/WebAnimations/animation-methods/reverse.txt new file mode 100644 index 00000000000..cfb3b4ad13e --- /dev/null +++ b/Tests/LibWeb/Text/expected/WebAnimations/animation-methods/reverse.txt @@ -0,0 +1,4 @@ + reverse() does not update the playback rate synchronously +reverse() updates the playback rate asynchronously +Cannot reverse an animation with an infinite effect end +reverse() does not update the playback rate if calling play() would throw an exception diff --git a/Tests/LibWeb/Text/input/WebAnimations/animation-methods/reverse.html b/Tests/LibWeb/Text/input/WebAnimations/animation-methods/reverse.html new file mode 100644 index 00000000000..d8ce3d03130 --- /dev/null +++ b/Tests/LibWeb/Text/input/WebAnimations/animation-methods/reverse.html @@ -0,0 +1,44 @@ + +
+ +