Fix the bar not hiding, OK toggles it, and the guide scrolls (0.35.0)
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 1m45s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m21s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-01 23:31:27 +00:00
co-authored by Claude Opus 5.5
parent 502f933c60
commit 021cfa2a64
7 changed files with 53 additions and 6 deletions
@@ -82,4 +82,19 @@ class GuideGridTest {
assertEquals(1f, programmeProgress(100, 200, 300), .001f)
assertEquals(0f, programmeProgress(100, 100, 100), .001f)
}
@Test
fun theGridScrollsOnlyWhenTheChosenRowLeavesTheScreen() {
assertEquals(0, guideFirstRow(3, 0, 8, 25))
assertEquals(1, guideFirstRow(8, 0, 8, 25))
assertEquals(5, guideFirstRow(9, 5, 8, 25))
assertEquals(4, guideFirstRow(4, 5, 8, 25))
assertEquals(17, guideFirstRow(24, 10, 8, 25))
}
@Test
fun aShortLineupNeverScrolls() {
assertEquals(0, guideFirstRow(2, 0, 8, 3))
assertEquals(0, guideFirstRow(0, 4, 8, 3))
}
}