fix(flutter): feed 清屏保留顶栏并寻址恢复播放
This commit is contained in:
1 parent
9b99d96a07
commit
c87798fb16
5 files changed
+83
-28
No files matched your search
@@ -215,6 +215,27 @@ void main() {
|
||||
logic.dispose();
|
||||
await _drain(logic);
|
||||
});
|
||||
|
||||
test('should_resume_playback_after_seek_when_paused', () async {
|
||||
final logic = _logic(FakeWatchHistory());
|
||||
logic.attach(
|
||||
PlayerPage(drama: _drama('signal'), initialIndex: 0),
|
||||
isMounted: () => true,
|
||||
);
|
||||
logic.start(
|
||||
factory: _RecordingFactory().create,
|
||||
coordinator: PlaybackCoordinator(),
|
||||
);
|
||||
await _drain(logic);
|
||||
logic.session.setUserWantsPlay(false);
|
||||
expect(logic.session.userWantsPlay, isFalse);
|
||||
|
||||
logic.resumeAfterSeek();
|
||||
|
||||
expect(logic.session.userWantsPlay, isTrue);
|
||||
logic.dispose();
|
||||
await _drain(logic);
|
||||
});
|
||||
});
|
||||
|
||||
group('history writes', () {
|
||||
|
||||
Reference in new issue
Block a user