From 074f5429a6eb74dc90022fe76be39c2356ffed73 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Wed, 27 Mar 2024 19:42:23 -0700 Subject: [PATCH] LibWeb: Add a test for Animation.play() --- .../WebAnimations/animation-methods/play.txt | 4 +++ .../WebAnimations/animation-methods/play.html | 35 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 Tests/LibWeb/Text/expected/WebAnimations/animation-methods/play.txt create mode 100644 Tests/LibWeb/Text/input/WebAnimations/animation-methods/play.html diff --git a/Tests/LibWeb/Text/expected/WebAnimations/animation-methods/play.txt b/Tests/LibWeb/Text/expected/WebAnimations/animation-methods/play.txt new file mode 100644 index 00000000000..10f05ea3928 --- /dev/null +++ b/Tests/LibWeb/Text/expected/WebAnimations/animation-methods/play.txt @@ -0,0 +1,4 @@ + Cannot rewind an animation with an infinite effect end +play() leaves animation's startTime unresolved: true +play() does not recreate the animation's ready promise +play() does not synchronously resolve the ready promise diff --git a/Tests/LibWeb/Text/input/WebAnimations/animation-methods/play.html b/Tests/LibWeb/Text/input/WebAnimations/animation-methods/play.html new file mode 100644 index 00000000000..04999b5a49a --- /dev/null +++ b/Tests/LibWeb/Text/input/WebAnimations/animation-methods/play.html @@ -0,0 +1,35 @@ + +
+ +