Smaller switches, N/A for unplayed games, Paul's 3x40s drift test; settings-for-everyone mock-ups
- OnOff is 50 x 28 dp (was 64 x 34), same focus ring. - High scores: a game not played yet shows N/A in each column. - ProgrammeLengthsTest: three programmes 40 s over all play in full at exactly 2 minutes' drift; a fourth squeezes the next film's credits. - design/settings: five plain sections, presets, one Other TVs list (approved). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -79,6 +79,19 @@ class ProgrammeLengthsTest {
|
||||
assertTrue(back.entries.zipWithNext().all { (x, y) -> x.endMs <= y.startMs })
|
||||
}
|
||||
|
||||
@Test
|
||||
fun threeProgrammesFortySecondsOverAllPlayInFull() {
|
||||
// Paul's question: three in a row, each 40 seconds long. Two minutes of drift, and nothing is cut.
|
||||
var p = plan(*(0 until 6).map { entry("f$it", it * 100 * min, 100 * min) }.toTypedArray())
|
||||
for (i in 0 until 3) p = retimedPlan(p, p.entries[i].startMs, 100 * min + 40_000)!!
|
||||
assertTrue(p.entries.none { (it.fileMs ?: it.media.durationMs) > it.media.durationMs })
|
||||
assertEquals(listOf(120_000L, 120_000L, 120_000L), p.entries.drop(3).map { it.startMs - it.bookedStartMs })
|
||||
// A fourth: it plays in full too, and the fifth film's closing credits give up 40 seconds to hold the channel at two minutes.
|
||||
p = retimedPlan(p, p.entries[3].startMs, 100 * min + 40_000)!!
|
||||
assertEquals(40_000L, p.entries[4].fileMs!! - p.entries[4].media.durationMs)
|
||||
assertEquals(120_000L, p.entries[5].startMs - p.entries[5].bookedStartMs)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun tinyOverrunsNeverDriftAChannelMoreThanTwoMinutes() {
|
||||
// Thirty back-to-back episodes, each found 20 seconds longer than booked as the evening goes on.
|
||||
|
||||
Reference in New Issue
Block a user