0.118.0 (versionCode 309): Test Card Tangle, Orbi-Fax Codebreaker, Arcade Daily and the seasonal backdrops in one build

- Six more backdrops: Seaside Pier, Drive-In, Snowfall, Sakura Night, Retro Living Room, Moon Base
- Fit checks for the new games' buttons and every backdrop name
- docs/new-originals.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-09 11:30:38 +00:00
co-authored by Claude Opus 5.5
parent d4d9c80746
commit aab877afc9
7 changed files with 190 additions and 8 deletions
@@ -61,7 +61,9 @@ class BackByContextTest {
assertNull(ArcadeBackdrop.parse("SomethingElse"))
val defaults = ArcadeGames.classics.map { ArcadeBackdrop.forGame(it.id) }
assertEquals(8, defaults.size)
// Seven of the eight backdrops are a Classic's own; the eighth (Aurora) is one of Comet Trail's changing skies.
assertEquals(ArcadeBackdrop.entries.toSet(), (defaults + ArcadeBackdrop.cometSkies).toSet())
// Every Classic has its own, and Comet Trail its changing skies, all from the collection.
assertTrue(ArcadeBackdrop.entries.toSet().containsAll(defaults + ArcadeBackdrop.cometSkies))
// The seasonal and channel set are choices for every game (Arcade Settings › Backdrop).
assertEquals(14, ArcadeBackdrop.entries.size)
}
}
@@ -179,4 +179,17 @@ class TitleTextFitsTest {
for (mode in tv.orbit.classic.arcade.quiz.QuizMix.entries) assertTrue(mode.title, width(sans, "◆ ${mode.title}") <= 230 - 2 * 12 - 4)
assertTrue(width(sans, "▶ Who's playing?") <= 230 - 2 * 12 - 4)
}
@Test fun theNewOriginalsWordsFit() {
val sans = Font(Font.SANS_SERIF, Font.BOLD, 1).deriveFont(14f * 1.3f)
// Arcade Daily's Play button names the day's game: every game's title fits it.
for (g in ArcadeGames.all) assertTrue(g.title, width(sans, "▶ Play ${g.title}") <= 340 - 2 * 12 - 4)
assertTrue(340 + 10 + 200 <= 960 - 96 - 24 - 240 - 40)
// Test Card Tangle's and Codebreaker's title buttons and modes.
for (label in listOf("▶ Level 30", "◆ Picture Perfect", "◆ Daily code", "◆ Practice", "▶ Practise instead", "▶ A practice code", "▶ Today's code"))
assertTrue(label, width(sans, label) <= 230 - 2 * 12 - 4)
// The backdrop button's longest name, in an Arcade Settings card (about 330 dp).
val detail = Font(Font.SANS_SERIF, Font.PLAIN, 1).deriveFont(12f * 1.3f)
for (b in tv.orbit.classic.ArcadeBackdrop.entries) assertTrue(b.title, width(sans, "Backdrop") + 8 + width(detail, b.title) <= 330 - 24 - 4)
}
}