0.83.0: Drive-In curtain intro, reusable, skippable, with Drive-In curtains and Reduce motion settings
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package tv.orbit.classic
|
||||
|
||||
import org.junit.Assert.*
|
||||
import org.junit.Test
|
||||
|
||||
class PresentationIntroTest {
|
||||
@Test fun introPlaysOnlyWhenWantedAndMotionIsAllowed() {
|
||||
assertSame(CurtainIntro, introFor(CurtainIntro, enabled = true, reduceMotion = false))
|
||||
assertNull(introFor(CurtainIntro, enabled = false, reduceMotion = false))
|
||||
assertNull(introFor(CurtainIntro, enabled = true, reduceMotion = true))
|
||||
assertNull(introFor(null, enabled = true, reduceMotion = false))
|
||||
}
|
||||
|
||||
@Test fun aTrialIntroIsUsedOnce() {
|
||||
IntroTrial.nextTune = true
|
||||
assertTrue(IntroTrial.take())
|
||||
assertFalse(IntroTrial.take())
|
||||
}
|
||||
|
||||
@Test fun theLimitOutlastsTheCurtains() {
|
||||
assertTrue(INTRO_LIMIT_MS > 7_000)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user