mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
27 lines
No EOL
679 B
JavaScript
27 lines
No EOL
679 B
JavaScript
var tests = [];
|
|
for (var file in window.__karma__.files) {
|
|
if (window.__karma__.files.hasOwnProperty(file)) {
|
|
if (file.indexOf("/base/test/") === 0 && file.indexOf("js") !== -1 &&
|
|
file.indexOf("karmaTest.js") === -1 && file.indexOf("helper") === -1 &&
|
|
file.indexOf("deps") === -1) {
|
|
tests.push(file);
|
|
}
|
|
}
|
|
}
|
|
|
|
requirejs.config({
|
|
// Karma serves files from '/base'
|
|
baseUrl: "/base/test",
|
|
|
|
paths: {
|
|
"Tone" : "../Tone",
|
|
// "deps" : "test/deps",
|
|
"Test" : "./helper/Test"
|
|
},
|
|
|
|
// ask Require.js to load these files (all our tests)
|
|
deps: tests,
|
|
|
|
// start test run, once Require.js is done
|
|
callback: window.__karma__.start
|
|
}); |