|
@@ -35,7 +35,7 @@ export default function musicPlaybackControllerTest() {
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
await controller.playQueue(songs, 1, 'charts-count')
|
|
await controller.playQueue(songs, 1, 'charts-count')
|
|
|
- await controller.playOrPauseDirect()
|
|
|
|
|
|
|
+ await controller.playOrPause()
|
|
|
await controller.seekTo('88', 'controller-test')
|
|
await controller.seekTo('88', 'controller-test')
|
|
|
|
|
|
|
|
expect(calls.join(',')).assertEqual('playQueue:1:charts-count,playOrPause,seekTo:88:controller-test')
|
|
expect(calls.join(',')).assertEqual('playQueue:1:charts-count,playOrPause,seekTo:88:controller-test')
|
|
@@ -65,7 +65,7 @@ export default function musicPlaybackControllerTest() {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- controller.playOrPause()
|
|
|
|
|
|
|
+ await controller.playOrPause()
|
|
|
await controller.playNext()
|
|
await controller.playNext()
|
|
|
await controller.playPrevious()
|
|
await controller.playPrevious()
|
|
|
await controller.setLoopMode()
|
|
await controller.setLoopMode()
|
|
@@ -101,7 +101,7 @@ export default function musicPlaybackControllerTest() {
|
|
|
controller.setActions(actions)
|
|
controller.setActions(actions)
|
|
|
controller.clearActions(actions)
|
|
controller.clearActions(actions)
|
|
|
|
|
|
|
|
- controller.playOrPause()
|
|
|
|
|
|
|
+ await controller.playOrPause()
|
|
|
await controller.playNext()
|
|
await controller.playNext()
|
|
|
await controller.seekTo('1', 'cleared')
|
|
await controller.seekTo('1', 'cleared')
|
|
|
|
|
|
|
@@ -113,7 +113,7 @@ export default function musicPlaybackControllerTest() {
|
|
|
const controller = MusicPlaybackController.getInstance()
|
|
const controller = MusicPlaybackController.getInstance()
|
|
|
|
|
|
|
|
controller.clearActions()
|
|
controller.clearActions()
|
|
|
- controller.playOrPause()
|
|
|
|
|
|
|
+ await controller.playOrPause()
|
|
|
await controller.playNext()
|
|
await controller.playNext()
|
|
|
await controller.playPrevious()
|
|
await controller.playPrevious()
|
|
|
await controller.setLoopMode()
|
|
await controller.setLoopMode()
|