mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
clock onended test
This commit is contained in:
parent
3c2d962715
commit
1ad17e5021
1 changed files with 11 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
/* global it, describe, beforeEach, maxTimeout */
|
||||
|
||||
define(["chai", "Tone/core/Transport", "tests/Core", "tests/Common", "Tone/core/Clock"], function(chai, Transport, Core, Test, Clock){
|
||||
define(["chai", "Tone/core/Transport", "tests/Core", "tests/Common", "Tone/core/Clock"],
|
||||
function(chai, Transport, Core, Test, Clock){
|
||||
var expect = chai.expect;
|
||||
|
||||
describe("Tone.Clock", function(){
|
||||
|
@ -26,6 +27,15 @@ define(["chai", "Tone/core/Transport", "tests/Core", "tests/Common", "Tone/core/
|
|||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it("invokes the callback when stopped", function(done){
|
||||
Test.onlineContext();
|
||||
var clock = new Clock(0.5, function(){});
|
||||
clock.start();
|
||||
clock.stop("+0.5", function(){
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("Transport.setBpm / getBpm", function(){
|
||||
|
|
Loading…
Reference in a new issue