adding explicit start time to Transport.start in tests

This commit is contained in:
Yotam Mann 2016-12-05 21:30:25 -05:00
parent 7a1380637e
commit 7529599607

View file

@ -652,7 +652,7 @@ define(["helper/Basic", "Tone/event/Part", "Tone/core/Tone",
part.loop = true;
part.loopEnd = 0.5;
part.start(0, 1.05);
Tone.Transport.start();
Tone.Transport.start(Tone.now());
});
it("can start a loop with an offset before loop start", function(done){
@ -677,7 +677,7 @@ define(["helper/Basic", "Tone/event/Part", "Tone/core/Tone",
part.loopStart = 0.25;
part.loopEnd = 0.5;
part.start(0, 0);
Tone.Transport.start();
Tone.Transport.start(Tone.now());
});
});
@ -702,7 +702,7 @@ define(["helper/Basic", "Tone/event/Part", "Tone/core/Tone",
lastCall = time;
}
}).start(0);
Tone.Transport.start();
Tone.Transport.start(0);
after(function(){
part.dispose();
@ -729,7 +729,7 @@ define(["helper/Basic", "Tone/event/Part", "Tone/core/Tone",
lastCall = time;
}
}).start(0);
Tone.Transport.start();
Tone.Transport.start(0);
after(function(){
part.dispose();