WIP components (as built)

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 15:51:57 -04:00
1 parent 299e5fe720
commit 4b8fdf8df7
71 files changed
+3241 -468

No files matched your search

+15
View File
@@ -69,3 +69,18 @@ func TestBlinkHighlightSnapshot(t *testing.T) {
*v, *w = 103.75, 86.5
}, func(tt *ui.Tester) { tt.Frame() })
}
func TestBlinkHighlightRestoredMotionKeepsStaticMark(t *testing.T) {
value := 1.0
tt, n := motionFrames(func(c *ui.Context) { BlinkHighlight(c, value, BlinkHighlightOptions{Duration: 5 * time.Second}) }, 300, 100)
value = 2
tt.Frame()
tt.SetPreferences(ui.Preferences{ReduceMotion: true, TextScale: 1})
tt.SetPreferences(ui.Preferences{TextScale: 1})
if motionBusy(tt, n) {
t.Fatal("old highlight replayed after restoring motion")
}
if _, ok := tt.Find("2.00, up"); !ok {
t.Fatal("direction mark lost")
}
}