mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:17:35 +00:00
LibWeb: Add tests for the rest of the Animation properties
This commit is contained in:
parent
e91f4dcd79
commit
dc47210360
10 changed files with 164 additions and 0 deletions
|
@ -0,0 +1,4 @@
|
|||
Animation is pending after a call to play(): true
|
||||
Animation is not pending after ready promise resolves: true
|
||||
Animation is pending after a call to pause(): true
|
||||
Animation is not pending after ready promise resolves: true
|
|
@ -0,0 +1,5 @@
|
|||
Animation's playState is idle after cancel(): true
|
||||
Animation's playState is idle immediately after play(): true
|
||||
Animation's playState is paused after pause(): true
|
||||
Animation's playState is finished after finish(): true
|
||||
Animation's playState is finished after animation runs to completion: true
|
|
@ -0,0 +1,4 @@
|
|||
Animation has expected currentTime value after 100ms
|
||||
Animation has expected currentTime value after 200ms
|
||||
Animation has expected currentTime value after 300ms
|
||||
Animation has expected currentTime value after 400ms
|
|
@ -0,0 +1,4 @@
|
|||
Animation's replaceState is active initially: true
|
||||
Animation's replaceState is active after finishing: true
|
||||
Animation's replaceState is not removed after creating new animation: true
|
||||
Animation's replaceState is removed after new animation finishes: true
|
|
@ -0,0 +1,7 @@
|
|||
Animation's startTime is initially null: true
|
||||
Animation's startTime is 100 after setting the value: true
|
||||
Animation's startTime is non-null after ready promise resolved: true
|
||||
Animation's startTime is null after calling cancel(): true
|
||||
Animation's startTime is null after calling pause() and setting currentTime: true
|
||||
Animation's startTime updates after reversing playbackRate: true
|
||||
Animation's startTime updates after calling finish(): true
|
Loading…
Add table
Add a link
Reference in a new issue