Fix the bar not hiding, OK toggles it, and the guide scrolls (0.35.0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user