The first public release of Fabled Minstrel #158
@@ -207,11 +207,12 @@ describe('player store — shuffle + repeat + audio reports', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// A track ending: repeat one plays it again, repeat all moves on and wraps,
|
// A track ending: repeat one plays it again, repeat all moves on and wraps,
|
||||||
// and with repeat off the last track stops at its end.
|
// and with repeat off the last track stops at its end. cycles is how many
|
||||||
|
// presses of Repeat from off: one for all, two for one.
|
||||||
test.each([
|
test.each([
|
||||||
['repeat one replays the track', 1, 2, 0, 0, 'loading', 0],
|
['repeat one replays the track', 2, 2, 0, 0, 'loading', 0],
|
||||||
['repeat all moves on', 2, 3, 0, 1, 'loading', 0],
|
['repeat all moves on', 1, 3, 0, 1, 'loading', 0],
|
||||||
['repeat all wraps at the end', 2, 2, 1, 0, 'loading', 0],
|
['repeat all wraps at the end', 1, 2, 1, 0, 'loading', 0],
|
||||||
['repeat off stops at the end', 0, 2, 1, 1, 'paused', 180]
|
['repeat off stops at the end', 0, 2, 1, 1, 'paused', 180]
|
||||||
] as const)('a track ending with %s', (_label, cycles, n, start, wantIndex, wantState, wantPos) => {
|
] as const)('a track ending with %s', (_label, cycles, n, start, wantIndex, wantState, wantPos) => {
|
||||||
playQueue(Array.from({ length: n }, (_, i) => track(String(i + 1))), start);
|
playQueue(Array.from({ length: n }, (_, i) => track(String(i + 1))), start);
|
||||||
|
|||||||
Reference in New Issue
Block a user