mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 00:27:58 +00:00
testing looping when ticks >= loopEnd
This commit is contained in:
parent
8d84d67c4a
commit
f9dc9fea03
1 changed files with 15 additions and 0 deletions
|
@ -75,6 +75,21 @@ function (Test, Transport, Tone, Offline, TransportTime, Signal, BufferTest) {
|
|||
});
|
||||
});
|
||||
|
||||
it ("jumps to the loopStart after the loopEnd point", function(){
|
||||
var looped = false;
|
||||
return Offline(function(Transport){
|
||||
Transport.on("loop", function(){
|
||||
looped = true;
|
||||
});
|
||||
Transport.loop = true;
|
||||
Transport.loopEnd = 1;
|
||||
Transport.seconds = 2;
|
||||
Transport.start();
|
||||
}, 0.4).then(function(){
|
||||
expect(looped).to.be.true;
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
context("nextSubdivision", function(){
|
||||
|
|
Loading…
Reference in a new issue