2019-01-27 18:05:20 +00:00
|
|
|
import StereoWidener from "Tone/effect/StereoWidener";
|
|
|
|
import Basic from "helper/Basic";
|
|
|
|
import EffectTests from "helper/EffectTests";
|
2015-08-26 14:29:35 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
describe("StereoWidener", function(){
|
2015-08-26 14:29:35 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
Basic(StereoWidener);
|
|
|
|
EffectTests(StereoWidener, 0);
|
2015-08-26 14:29:35 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
context("API", function(){
|
|
|
|
|
|
|
|
it("can pass in options in the constructor", function(){
|
|
|
|
var widener = new StereoWidener({
|
|
|
|
"width" : 0.2,
|
2015-08-26 14:29:35 +00:00
|
|
|
});
|
2019-01-27 18:05:20 +00:00
|
|
|
expect(widener.width.value).to.be.closeTo(0.2, 0.001);
|
|
|
|
widener.dispose();
|
|
|
|
});
|
2015-08-26 14:29:35 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
it("can get/set the options", function(){
|
|
|
|
var widener = new StereoWidener();
|
|
|
|
widener.set({
|
|
|
|
"width" : 0.4,
|
2015-08-26 14:29:35 +00:00
|
|
|
});
|
2019-01-27 18:05:20 +00:00
|
|
|
expect(widener.width.value).to.be.closeTo(0.4, 0.001);
|
|
|
|
widener.dispose();
|
2015-08-26 14:29:35 +00:00
|
|
|
});
|
|
|
|
});
|
2017-12-30 16:26:29 +00:00
|
|
|
});
|
2019-01-27 18:05:20 +00:00
|
|
|
|