forked from soundio/soundstage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
executable file
·60 lines (45 loc) · 1.87 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<meta charset="utf-8" />
<title>Tests</title>
<link rel="stylesheet" href="./test/tests.css" />
<!-- These elements are picked up by Selenium in Github Actions -->
<pre class="console-pre" id="console"></pre>
<pre class="result-pre" id="result" hidden></pre>
<p>Click somewhere to launch the WebAudio clock: some tests – see them in the console – depend on it.</p>
<!--soundstage-player src="./test/soundstage-test.json"></soundstage-player-->
<soundstage-player src="./examples/drum-stage.json"></soundstage-player>
<script>
window.DEBUG = true;
</script>
<script type="module">
import { pass, fail } from './test/tests.js';
import { done } from '../fn/modules/test.js';
// Import test files here
//import './tests/example-test.js';
// Dependences
// import '../fn/modules/test/stream-test.js';
// import '../fn/modules/test/observe-test.js';
// import '../dom/modules/test/events-test.js';
// Modules
//import './modules/test/event-test.js';
//import './modules/test/events-test.js';
//import './modules/test/location-test.js';
//import './modules/test/meter-test.js';
//import './modules/test/transport-test.js';
//import './modules/test/frame-stream-test.js';
//import './modules/test/sequence-test.js';
//import './modules/test/sequencer-test.js';
// Nodes
//import './nodes/test/graph-test.js';
//import './nodes/test/sample-test.js';
//import './nodes/test/signal-test.js';
//import './nodes/test/tick-test.js';
//import './nodes/test/tone-test.js';
//import './nodes/test/voice-test.js';
//import './nodes/test/instrument-test.js';
// Soundstage
//import './test/soundstage-test.js';
import SoundstagePlayer from './elements/soundstage-player.js';
// Report results
done((totals) => (totals.fail > 0 ? fail() : pass()));
window.onerror = fail;
</script>