mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
increasing test thresholds
This commit is contained in:
parent
2cacafbb04
commit
730b138773
1 changed files with 13 additions and 13 deletions
|
@ -78,25 +78,25 @@ function(BasicTests, OscillatorNode, Offline, Frequency, Test, Meter, Supports,
|
|||
osc.stop("+0.3");
|
||||
var now = osc.now();
|
||||
osc.onended = function(){
|
||||
expect(osc.now() - now).to.be.within(0.25, 0.45);
|
||||
expect(osc.now() - now).to.be.within(0.25, 0.5);
|
||||
osc.dispose();
|
||||
done();
|
||||
};
|
||||
});
|
||||
|
||||
it("invokes the onended callback only once in the online context", function(done){
|
||||
var osc = new OscillatorNode();
|
||||
osc.start("+0");
|
||||
osc.stop("+0.1");
|
||||
osc.stop("+0.2");
|
||||
osc.stop("+0.3");
|
||||
var now = osc.now();
|
||||
osc.onended = function(){
|
||||
expect(osc.now() - now).to.be.within(0.25, 0.45);
|
||||
osc.dispose();
|
||||
done();
|
||||
};
|
||||
});
|
||||
var osc = new OscillatorNode();
|
||||
osc.start("+0");
|
||||
osc.stop("+0.1");
|
||||
osc.stop("+0.2");
|
||||
osc.stop("+0.3");
|
||||
var now = osc.now();
|
||||
osc.onended = function(){
|
||||
expect(osc.now() - now).to.be.within(0.25, 0.5);
|
||||
osc.dispose();
|
||||
done();
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
it("invokes the onended callback in the offline context", function(done){
|
||||
|
|
Loading…
Reference in a new issue