Tone.js/test/effect/StereoXFeedbackEffect.js

33 lines
1.1 KiB
JavaScript
Raw Normal View History

2015-08-26 14:29:35 +00:00
define(["Tone/effect/Effect", "Tone/effect/StereoXFeedbackEffect", "helper/Basic"], function (Effect, StereoXFeedbackEffect, Basic) {
describe("StereoXFeedbackEffect", function(){
Basic(StereoXFeedbackEffect);
context("Feedback Effect", function(){
2017-12-30 16:26:29 +00:00
it("extends Effect", function(){
2015-08-26 14:29:35 +00:00
var stereoFeedback = new StereoXFeedbackEffect();
expect(stereoFeedback).to.be.instanceOf(Effect);
stereoFeedback.dispose();
});
2017-12-30 16:26:29 +00:00
it("has a feedback signal", function(){
2015-08-26 14:29:35 +00:00
var stereoFeedback = new StereoXFeedbackEffect();
expect(stereoFeedback).to.have.property("feedback");
expect(stereoFeedback.feedback).to.have.property("value");
stereoFeedback.dispose();
});
2017-12-30 16:26:29 +00:00
it("has a mid and a side send and return", function(){
2015-08-26 14:29:35 +00:00
var stereoFeedback = new StereoXFeedbackEffect();
expect(stereoFeedback).to.have.property("effectSendL");
expect(stereoFeedback).to.have.property("effectSendR");
expect(stereoFeedback).to.have.property("effectReturnL");
expect(stereoFeedback).to.have.property("effectReturnR");
stereoFeedback.dispose();
});
});
});
2017-12-30 16:26:29 +00:00
});