Seven layouts: Original, Just Watch, Simple, Retro Cable, Mosaic, Teletext and Kids
release-gate / verify (push) Successful in 10m14s
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 3m41s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 2m50s

- Settings › On screen › Layout; each layout changes Home only and wears any of the ten looks (70 pairs).
- Just Watch opens on the last channel once someone is chosen; Back gives a menu over the picture.
- Home draws nothing while Who's watching is asked, so no layout plays under the last person's profile.
- Teletext opens on OrbiFax; Kids uses Comfortaa and only the kids' channels; Mosaic and Retro Cable play one picture.
- Household adb switches orbit_layout and orbit_look for checking the pairs on the emulator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-12 07:55:25 +00:00
co-authored by Claude Opus 5.5
parent 22f018bd82
commit 0beee1d8a2
7 changed files with 374 additions and 3 deletions
@@ -0,0 +1,29 @@
package tv.orbit.classic
import org.junit.After
import org.junit.Assert.*
import org.junit.Test
/** The seven layouts (12 November 2026): Original stays the default, and any layout wears any look. */
class LayoutsTest {
@After fun reset() { OrbitLayouts.use(OrbitLayout.Original); OrbitTheme.use(OrbitLook.Night) }
@Test fun sevenLayoutsAndOriginalFirst() {
assertEquals(7, OrbitLayout.entries.size)
assertEquals(OrbitLayout.Original, OrbitLayout.entries.first())
assertEquals(OrbitLayout.Original, OrbitLayouts.current)
}
@Test fun seventyCombinations() {
assertEquals(10, OrbitLook.entries.size)
var combos = 0
for (layout in OrbitLayout.entries) for (look in OrbitLook.entries) { OrbitLayouts.use(layout); OrbitTheme.use(look); combos++
assertEquals(layout, OrbitLayouts.current); assertEquals(look.palette.accent, Yellow) }
assertEquals(70, combos)
}
@Test fun kidsShowsOnlyKidsChannelsWhenThereAreAny() {
assertEquals(listOf(TOTS_NUMBER, VORTEX_NUMBER), kidsNumbers(listOf(101, TOTS_NUMBER, VORTEX_NUMBER, 201)))
assertEquals(listOf(101, 201), kidsNumbers(listOf(101, 201)))
}
}