testing looping when ticks >= loopEnd

This commit is contained in:
Yotam Mann 2017-05-21 19:43:50 -07:00
parent 8d84d67c4a
commit f9dc9fea03

View file

@ -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(){