Fix TV episode navigation and live resume freshness
This commit is contained in:
parent
54c23e076a
commit
8e40ac0869
34 changed files with 793 additions and 101 deletions
|
|
@ -36,8 +36,8 @@ class HomeKeysTest {
|
|||
for (key in 0 until keys.length()) press(keys.getString(key))
|
||||
assertEquals(path.getString("goal"), path.getInt("presses"), keys.length())
|
||||
when (index) {
|
||||
0 -> { assertEquals("mindel", shell.person.key); assertTrue(action is HomeAction.Play); assertTrue((action as HomeAction.Play).resume) }
|
||||
1 -> { assertTrue(action is HomeAction.Play); assertFalse((action as HomeAction.Play).resume); assertEquals("Yu Yu Hakusho", (action as HomeAction.Play).title.seriesTitle) }
|
||||
0 -> { assertEquals("mindel", shell.person.key); assertTrue(action is HomeAction.Play) }
|
||||
1 -> { assertTrue(action is HomeAction.Play); assertEquals("Yu Yu Hakusho", (action as HomeAction.Play).title.seriesTitle) }
|
||||
2 -> assertEquals("trending", fixture.snapshot("justin").rows[shell.view.row].id)
|
||||
3 -> { val row = fixture.snapshot("justin").rows[shell.view.row]; assertEquals("trending", row.id); assertEquals(row.cards.size, shell.view.cards[row.id]); assertTrue(row.hasSeeAll) }
|
||||
4 -> { val row = fixture.snapshot("justin").rows[shell.view.row]; assertEquals("lib-shows", row.id); assertEquals(2, shell.view.cards[row.id]); assertFalse(shell.navFocused) }
|
||||
|
|
@ -170,7 +170,6 @@ class HomeKeysTest {
|
|||
assertEquals(0, shell.view.cards["hero"])
|
||||
press("OK")
|
||||
val play = action as HomeAction.Play
|
||||
assertFalse(play.resume)
|
||||
assertEquals("Yu Yu Hakusho", play.title.seriesTitle)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue