1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:17:35 +00:00

LibWeb: Add a few Animation property tests

This commit is contained in:
Matthew Olsson 2024-03-07 09:48:26 -07:00 committed by Alexander Kalenik
parent d76c2d45c4
commit d7ad134ae5
8 changed files with 110 additions and 0 deletions

View file

@ -0,0 +1,5 @@
Animation with no timeline has null currentTime: true
Animation that hasn't been played has null currentTime: true
Played animation has a currentTime of 0: true
New animation has not started animating: true
Animation with currentTime set to end is finished: true

View file

@ -0,0 +1,4 @@
Element.animate creates Animation with effect: true
Setting effect to null clears the effect: true
Accessing effect property on animation with no effect produces null: true
Setting effect on animation with no effect works: true

View file

@ -0,0 +1,4 @@
finished promise remains after finishing: true
finished promise updates after playing: true
cancel() updates finished promise: true
Expected finished promise cancellation

View file

@ -0,0 +1,2 @@
Animation's default timeline is the document's timeline: true
Animation created with null timeline has the document's timeline: true