mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Ensure animation scheduling order.
This commit is contained in:
@@ -154,6 +154,7 @@ async def test_schedule_reverse_animations() -> None:
|
|||||||
|
|
||||||
# Now, the actual test is to make sure we go back to black if scheduling both at once.
|
# Now, the actual test is to make sure we go back to black if scheduling both at once.
|
||||||
styles.animate("background", "white", delay=0.01, duration=0.01)
|
styles.animate("background", "white", delay=0.01, duration=0.01)
|
||||||
|
await pilot.pause(0.005)
|
||||||
styles.animate("background", "black", delay=0.01, duration=0.01)
|
styles.animate("background", "black", delay=0.01, duration=0.01)
|
||||||
await pilot.wait_for_scheduled_animations()
|
await pilot.wait_for_scheduled_animations()
|
||||||
assert styles.background.rgb == (0, 0, 0)
|
assert styles.background.rgb == (0, 0, 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user