mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-17 09:08:10 +00:00
50 lines
1.3 KiB
JavaScript
50 lines
1.3 KiB
JavaScript
/* global it, describe, maxTimeout */
|
|
|
|
define(["tests/Core", "chai", "tests/Common", "Tone/effect/AutoWah", "Tone/effect/preset/AutoWah.preset",
|
|
"Tone/effect/Chorus", "Tone/effect/preset/Chorus.preset", "Tone/effect/Freeverb", "Tone/effect/preset/Freeverb.preset",
|
|
"Tone/effect/Phaser", "Tone/effect/preset/Phaser.preset"],
|
|
function(Tone, chai, Test, AutoWah, AutoWahPresets, Chorus, ChorusPresets, Freeverb, FreeverbPresets,
|
|
Phaser, PhaserPresets){
|
|
|
|
var expect = chai.expect;
|
|
|
|
describe("Tone.Autowah Presets", function(){
|
|
this.timeout(maxTimeout);
|
|
|
|
it ("has valid presets", function(){
|
|
var aw = new AutoWah();
|
|
Test.validatePresets(aw);
|
|
aw.dispose();
|
|
});
|
|
});
|
|
|
|
describe("Tone.Chorus Presets", function(){
|
|
this.timeout(maxTimeout);
|
|
|
|
it ("has valid presets", function(){
|
|
var chorus = new Chorus();
|
|
Test.validatePresets(chorus);
|
|
chorus.dispose();
|
|
});
|
|
});
|
|
|
|
describe("Tone.Freeverb Presets", function(){
|
|
this.timeout(maxTimeout);
|
|
|
|
it ("has valid presets", function(){
|
|
var fv = new Freeverb();
|
|
Test.validatePresets(fv);
|
|
fv.dispose();
|
|
});
|
|
});
|
|
|
|
describe("Tone.Phaser Presets", function(){
|
|
this.timeout(maxTimeout);
|
|
|
|
it ("has valid presets", function(){
|
|
var phase = new Phaser();
|
|
Test.validatePresets(phase);
|
|
phase.dispose();
|
|
});
|
|
});
|
|
});
|