2014-06-18 05:37:01 +00:00
|
|
|
require.config({
|
|
|
|
baseUrl:"./",
|
|
|
|
paths : {
|
|
|
|
"Tone" : "../Tone",
|
|
|
|
"chai" : "./testDeps/chai",
|
2014-06-19 02:33:08 +00:00
|
|
|
"Recorder" : "./testDeps/recorder"
|
|
|
|
},
|
|
|
|
shim : {
|
|
|
|
"Recorder" : {
|
|
|
|
exports : "Recorder"
|
|
|
|
}
|
2014-06-18 05:37:01 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2014-09-05 04:58:51 +00:00
|
|
|
var recorderDelay = 0.5;
|
|
|
|
var recorderDuration = 0.1;
|
|
|
|
var maxTimeout = 1000;
|
|
|
|
|
2014-09-06 22:55:11 +00:00
|
|
|
function wasDisposed(obj, expect){
|
|
|
|
for (var prop in obj){
|
|
|
|
var member = obj[prop];
|
|
|
|
if (typeof member !== "function" &&
|
|
|
|
typeof member !== "string" &&
|
|
|
|
typeof member !== "number" &&
|
|
|
|
typeof member !== "boolean" &&
|
|
|
|
!(member instanceof AudioContext)){
|
|
|
|
expect(obj[prop]).to.equal(null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-09-05 04:58:51 +00:00
|
|
|
var allTests = ["tests/Core", "tests/Timing", "tests/Signal", "tests/SignalComparison",
|
2014-09-09 19:30:36 +00:00
|
|
|
"tests/SignalMath", "tests/Transport", "tests/Sources", "tests/Components", "tests/Effect", "tests/Instruments"];
|
|
|
|
// var allTests = ["tests/Core", "tests/Instruments"];
|
2014-06-19 02:33:08 +00:00
|
|
|
|
|
|
|
require(allTests, function(){
|
2014-06-18 22:43:47 +00:00
|
|
|
mocha.run();
|
2014-06-18 05:37:01 +00:00
|
|
|
});
|