Adaptive Music v0.8.0 release candidate
Validate and generate manual release / package (push) Waiting to run
Validate and generate manual release / package (push) Waiting to run
This commit is contained in:
1 parent
8c07a468a4
commit
95b0427aa1
48 files changed
+3631
-313
No files matched your search
@@ -113,3 +113,14 @@ test('Sendspin pause emulation retains position and restores paused queues witho
|
||||
assert.deepEqual(f.writes.slice(before).map(w=>w.action),['stop','clear','repeat','play_media']);
|
||||
const again=await f.provider.snapshot({...f.ctx,generation:7});assert.equal(again.value.state,'paused');assert.equal(again.value.index,1);assert.equal(again.value.position,17);
|
||||
});
|
||||
|
||||
test('an exhausted ambient queue can be interrupted and restored without starting audio',async()=>{
|
||||
const f=fixture();
|
||||
Object.assign(f.state,{state:'idle',ended:true,current_index:2,elapsed_time:0,repeat_mode:'off'});
|
||||
const finished=await f.provider.snapshot(f.ctx);
|
||||
assert.equal(finished.value.ended,true);
|
||||
f.state.ended=false;
|
||||
await f.provider.restore(finished,{...f.ctx,generation:2});
|
||||
assert.deepEqual(f.writes.map(write=>write.action),['stop','clear','repeat','play_media']);
|
||||
assert.equal(f.state.state,'idle');
|
||||
});
|
||||
Reference in new issue
Block a user