Tone.js/test/effect/StereoWidener.js

29 lines
703 B
JavaScript
Raw Normal View History

2015-08-26 14:29:35 +00:00
define(["Tone/effect/StereoWidener", "helper/Basic", "helper/EffectTests"], function (StereoWidener, Basic, EffectTests) {
describe("StereoWidener", function(){
Basic(StereoWidener);
EffectTests(StereoWidener, 0);
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 widener = new StereoWidener({
"width" : 0.2,
});
expect(widener.width.value).to.be.closeTo(0.2, 0.001);
widener.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 widener = new StereoWidener();
widener.set({
"width" : 0.4,
});
expect(widener.width.value).to.be.closeTo(0.4, 0.001);
widener.dispose();
});
});
});
2017-12-30 16:26:29 +00:00
});