diff --git a/just_audio/test/just_audio_test.dart b/just_audio/test/just_audio_test.dart index 989073ee8..f039d4441 100644 --- a/just_audio/test/just_audio_test.dart +++ b/just_audio/test/just_audio_test.dart @@ -1008,6 +1008,16 @@ void runTests() { await player.dispose(); }); + test('play-stop', () async { + final player = AudioPlayer(); + await player.setUrl('https://bar.bar/foo.mp3'); + player.play(); + await player.stop(); + await Future.delayed(Duration(milliseconds: 200)); + expect(mock.mostRecentPlayer?._playing, false); + await player.dispose(); + }); + test('positionStream emissions: seek while paused', () async { final player = AudioPlayer(); await player.setUrl('https://bar.bar/foo.mp3');