mopidy/tests/core
Stein Magnus Jodal 1d108752f6 core: Make events emitted on playback consistent (fixes #629)
This commit does not try to make the events correct/perfect with regard to
GStreamer states, end-of-stream signalling, etc. It only tries to make the
events work consistently across all the methods on the playback controller.

* play(track) while already playing has changed from:

  - playback_state_changed(old_state='playing', new_state='playing')
  - track_playback_started(track=...)

  to:

  - playback_state_changed(old_state='playing', new_state='stopped')
  - track_playback_ended(track=..., time_position=...)
  - playback_state_changed(old_state='stopped', new_state='playing')
  - track_playback_started(track=...)

* next() has changed from:

  - track_playback_ended(track=..., time_position=...)
  - playback_state_changed(old_state='playing', new_state='stopped')
  - track_playback_ended(track=..., time_position=0)
  - playback_state_changed(old_state='stopped', new_state='playing')
  - track_playback_started(track=...)

  to same as play() above.

* previous() has changed in the same way as next().

* on_end_of_track() has changed from:

  - track_playback_ended(track=..., time_position=...)
  - playback_state_changed(old_state='playing', new_state='playing')
  - track_playback_started(track=...)

  to same as play() above.

* stop() has reordered its events from:

  - track_playback_ended(track=..., time_position=...)
  - playback_state_changed(old_state='playing', new_state='stopped')

  to:

  - playback_state_changed(old_state='playing', new_state='stopped')
  - track_playback_ended(track=..., time_position=...)
2014-01-14 01:18:39 +01:00
..
__init__.py Make all strings unicode by default (fixes #224) 2012-11-13 00:18:47 +01:00
actor_test.py core: Re-add one uri scheme per backend constraint. 2013-12-31 14:45:57 +01:00
events_test.py core: Make events emitted on playback consistent (fixes #629) 2014-01-14 01:18:39 +01:00
library_test.py backend: Update backend API imports 2014-01-11 18:20:45 +01:00
listener_test.py mpd: Trigger 'output' idle event on mute_changed() 2013-10-09 23:52:59 +02:00
playback_test.py core: Make events emitted on playback consistent (fixes #629) 2014-01-14 01:18:39 +01:00
playlists_test.py backend: Update backend API imports 2014-01-11 18:20:45 +01:00
tracklist_test.py backend: Update backend API imports 2014-01-11 18:20:45 +01:00