mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
scheduling sequence test in the future
This commit is contained in:
parent
102913de14
commit
1946d737ae
1 changed files with 2 additions and 2 deletions
|
@ -166,7 +166,7 @@ define(["helper/Basic", "Tone/event/Sequence", "Tone/core/Tone",
|
|||
});
|
||||
|
||||
it ("passes in the scheduled time to the callback", function(done){
|
||||
var now = Tone.Transport.now();
|
||||
var now = Tone.Transport.now() + 0.1;
|
||||
var seq = new Sequence(function(time){
|
||||
expect(time).to.be.a.number;
|
||||
expect(time - now).to.be.closeTo(0.3, 0.01);
|
||||
|
@ -174,7 +174,7 @@ define(["helper/Basic", "Tone/event/Sequence", "Tone/core/Tone",
|
|||
done();
|
||||
}, [0.5]);
|
||||
seq.start(0.3);
|
||||
Tone.Transport.start();
|
||||
Tone.Transport.start(now);
|
||||
});
|
||||
|
||||
it ("passes in the value to the callback", function(done){
|
||||
|
|
Loading…
Reference in a new issue