Orbit Arcade Stage C: review fixes and verification
- Back on an Arcade page returns to Play Games; on Play Games it goes back to Orbit. - A game opening while How to Play is still closing isn't paused at once; only going out of sight pauses. - Lint: remember no longer returns Unit; the repo singleton's application context is marked as intended. - docs/arcade-stage-c.md and docs/VERIFICATION-arcade-stage-c.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -45,4 +45,11 @@ class ArcadeInputTest {
|
||||
assertTrue(loopRuns(paused = false, alive = true, shown = true))
|
||||
assertFalse(loopRuns(true, true, true)); assertFalse(loopRuns(false, false, true)); assertFalse(loopRuns(false, true, false))
|
||||
}
|
||||
|
||||
@Test fun onlyGoingOutOfSightPausesNotStartingBehindADialog() {
|
||||
assertFalse(shouldPauseOnHide(wasShown = false, shown = false, alive = true))
|
||||
assertTrue(shouldPauseOnHide(wasShown = true, shown = false, alive = true))
|
||||
assertFalse(shouldPauseOnHide(wasShown = true, shown = false, alive = false))
|
||||
assertFalse(shouldPauseOnHide(wasShown = true, shown = true, alive = true))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user