2015-08-26 14:29:35 +00:00
|
|
|
define(["Tone/effect/JCReverb", "helper/Basic", "helper/EffectTests"], function (JCReverb, Basic, EffectTests) {
|
|
|
|
|
|
|
|
describe("JCReverb", function(){
|
|
|
|
|
|
|
|
Basic(JCReverb);
|
|
|
|
EffectTests(JCReverb);
|
|
|
|
|
|
|
|
context("API", function(){
|
|
|
|
|
2017-12-30 16:26:29 +00:00
|
|
|
it("can pass in options in the constructor", function(){
|
2015-08-26 14:29:35 +00:00
|
|
|
var reverb = new JCReverb({
|
|
|
|
"roomSize" : 0.2,
|
|
|
|
});
|
|
|
|
expect(reverb.roomSize.value).to.be.closeTo(0.2, 0.01);
|
|
|
|
reverb.dispose();
|
|
|
|
});
|
|
|
|
|
2017-12-30 16:26:29 +00:00
|
|
|
it("can get/set the options", function(){
|
2015-08-26 14:29:35 +00:00
|
|
|
var reverb = new JCReverb();
|
|
|
|
reverb.set({
|
|
|
|
"roomSize" : 0.23,
|
|
|
|
});
|
|
|
|
expect(reverb.get().roomSize).to.be.closeTo(0.23, 0.01);
|
|
|
|
reverb.dispose();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
2017-12-30 16:26:29 +00:00
|
|
|
});
|