Fix BasePlaybackController with respect to test_current_track_after_completed_playlist

This commit is contained in:
Thomas Adamcik 2010-04-07 01:35:44 +02:00
parent 3f6f3fdaec
commit f1ac153258
2 changed files with 2 additions and 0 deletions

View File

@ -452,6 +452,7 @@ class BasePlaybackController(object):
self.next()
else:
self.stop()
self.current_track = None
def new_playlist_loaded_callback(self):
"""Tell the playback controller that a new playlist has been loaded."""

View File

@ -274,6 +274,7 @@ class BasePlaybackControllerTest(object):
self.playback.play(self.tracks[-1])
self.playback.seek(self.tracks[0].length - 10)
time.sleep(0.1)
self.assertEqual(self.playback.state, self.playback.STOPPED)
self.assertEqual(self.playback.current_track, None)
@populate_playlist