Removes the player functions from the rootScope.
However, saving track's position is broken. Some are still there because of problems I don't know how to solve, e.g. circular dependency between notifications and player. Uses the queue controller for the sidebar queue. Moves loadTrackPosition to the main controller.
This commit is contained in:
parent
74ac275ece
commit
e5846e30f9
14 changed files with 352 additions and 278 deletions
30
app/common/main-controller_test.js
Normal file
30
app/common/main-controller_test.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
describe("Main controller", function() {
|
||||
'use strict';
|
||||
|
||||
describe("updateFavorite -", function() {
|
||||
|
||||
it("when starring a song, it notifies the user that the star was saved", function() {
|
||||
|
||||
});
|
||||
|
||||
it("when starring an album, it notifies the user that the star was saved", function() {
|
||||
|
||||
});
|
||||
|
||||
it("when starring an artist, it notifies the user that the star was saved", function() {
|
||||
|
||||
});
|
||||
|
||||
it("given that the Subsonic server returns an error, when starring something, it notifies the user with the error message", function() {
|
||||
//TODO: move to higher level
|
||||
});
|
||||
|
||||
it("given that the Subsonic server is unreachable, when starring something, it notifies the user with the HTTP error code", function() {
|
||||
//TODO: move to higher level
|
||||
});
|
||||
});
|
||||
|
||||
describe("toggleSetting -", function() {
|
||||
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue