From 7d8cf49b25cd8a5aea1322118a3d5def3695e12c Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Thu, 28 Mar 2024 14:23:53 +0000 Subject: [PATCH] LibWeb: Add a test for Animation.pause() --- .../WebAnimations/animation-methods/pause.txt | 6 +++ .../animation-methods/pause.html | 53 +++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 Tests/LibWeb/Text/expected/WebAnimations/animation-methods/pause.txt create mode 100644 Tests/LibWeb/Text/input/WebAnimations/animation-methods/pause.html diff --git a/Tests/LibWeb/Text/expected/WebAnimations/animation-methods/pause.txt b/Tests/LibWeb/Text/expected/WebAnimations/animation-methods/pause.txt new file mode 100644 index 00000000000..e202586ab84 --- /dev/null +++ b/Tests/LibWeb/Text/expected/WebAnimations/animation-methods/pause.txt @@ -0,0 +1,6 @@ + Cannot pause a reversing idle animation with infinite effect end +Calling pause() does not synchronously update pending playback rate +Calling pause() does not synchronously resolve animation's ready promise +Calling pause() does not send any events +Calling pause() does asynchronously update pending playback rate +Calling pause() asynchronously resolves animation's ready promise diff --git a/Tests/LibWeb/Text/input/WebAnimations/animation-methods/pause.html b/Tests/LibWeb/Text/input/WebAnimations/animation-methods/pause.html new file mode 100644 index 00000000000..3211f50b621 --- /dev/null +++ b/Tests/LibWeb/Text/input/WebAnimations/animation-methods/pause.html @@ -0,0 +1,53 @@ + +
+ +