mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 23:21:59 +01:00
keep playback running when offline mode is toggled, and swap the recently-added header icon
This commit is contained in:
@@ -2535,7 +2535,8 @@ class PlaybackControllerTest {
|
||||
handle.operations.clear()
|
||||
setOnline()
|
||||
|
||||
await { handle.operations.any { it.startsWith("setWindow") } }
|
||||
await { handle.operations.any { it.startsWith("add") } }
|
||||
assertFalse(handle.operations.any { it.startsWith("setWindow") })
|
||||
assertEquals(
|
||||
"s5",
|
||||
controller.state.value.item
|
||||
@@ -2801,7 +2802,8 @@ class PlaybackControllerTest {
|
||||
|
||||
setOffline()
|
||||
|
||||
await { handle.operations.any { it.startsWith("setWindow") } }
|
||||
await { handle.operations.any { it.startsWith("remove") || it.startsWith("add") } }
|
||||
assertFalse(handle.operations.any { it.startsWith("setWindow") })
|
||||
assertEquals(
|
||||
"s2",
|
||||
controller.state.value.item
|
||||
|
||||
Reference in New Issue
Block a user