v0.77.0: the laser visualizer is the Oscilloscope — screen sliders and rig diagram gone, a graticule dot size, and a sync delay per style
This commit is contained in:
@@ -54,14 +54,15 @@ class TestBetweenFrames:
|
||||
|
||||
class TestSyncSooner:
|
||||
def test_negative_delay_is_kept(self):
|
||||
assert vs.sync_delay_ms({"visualizer_sync_delay_ms": -30}) == -30
|
||||
assert vs.sync_delay_ms({"visualizer_sync_delay_ms": -999}) == vs.SYNC_DELAY_LIMITS[0]
|
||||
assert vs.sync_delay_ms({"visualizer_sync_delay_ms": -30}, "bars") == -30
|
||||
assert vs.sync_delay_ms({"visualizer_sync_delay_ms": -999},
|
||||
"bars") == vs.SYNC_DELAY_LIMITS[0]
|
||||
|
||||
def test_slider_reads_sooner_and_later(self, qapp, tmp_path, monkeypatch):
|
||||
from lintunes.gui import preferences_dialog as pd
|
||||
monkeypatch.setattr(pd, "load_config", lambda: {})
|
||||
dialog = pd.PreferencesDialog(Preferences(tmp_path), _LastFm())
|
||||
assert dialog._sync_slider.minimum() < 0
|
||||
assert dialog._sync_sliders["kaleidostrobe"].minimum() < 0
|
||||
assert pd._sync_text(-20) == "20 ms sooner"
|
||||
assert pd._sync_text(40) == "40 ms later"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user