mirror of
https://git.hiabuto.net/C3MA/CCMA.git
synced 2026-07-01 03:04:52 +02:00
feat: style timed splash progress
This commit is contained in:
@@ -32,11 +32,15 @@ def test_splash_position_centers_on_pointer_and_stays_on_screen() -> None:
|
||||
|
||||
|
||||
def test_splash_minimum_time_only_waits_for_remaining_duration() -> None:
|
||||
from ccma.ui.splash import _remaining_minimum_ms
|
||||
from ccma.ui.splash import _progress_value, _remaining_minimum_ms
|
||||
|
||||
assert _remaining_minimum_ms(100.0, 5.0, 102.25) == 2750
|
||||
assert _remaining_minimum_ms(100.0, 5.0, 106.0) == 0
|
||||
assert _remaining_minimum_ms(100.0, 0.0, 100.0) == 0
|
||||
assert _progress_value(2.5, 5.0, startup_finished=False) == 47.5
|
||||
assert _progress_value(5.0, 5.0, startup_finished=False) == 95.0
|
||||
assert _progress_value(2.5, 5.0, startup_finished=True) == 50.0
|
||||
assert _progress_value(5.0, 5.0, startup_finished=True) == 100.0
|
||||
|
||||
|
||||
def test_event_labels_hide_board_actor_but_keep_automatic_marker() -> None:
|
||||
|
||||
Reference in New Issue
Block a user