-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
31 lines (28 loc) · 900 Bytes
/
index.js
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
const {
OfflineAudioContextTest,
} = require("js_tests/offline_audio_context_test.js");
const { OscillatorTest } = require("js_tests/oscillator_test.js");
const { AudioBufferTest } = require("js_tests/audio_buffer_test.js");
const { DestinationNodeTest } = require("js_tests/destination_node_test.js");
const { GainNodeTest } = require("js_tests/gain_node_test.js");
const { DelayNodeTest } = require("js_tests/delay_node_test.js");
const {
AudioBufferSourceNodeTest,
} = require("js_tests/audio_buffer_source_node_test.js");
async function AllTest() {
const task_list = [
AudioBufferTest,
OscillatorTest,
OfflineAudioContextTest,
DestinationNodeTest,
GainNodeTest,
DelayNodeTest,
AudioBufferSourceNodeTest,
];
for (let i = 0; i < task_list.length; i++) {
await task_list[i]();
// do gc() to clear nodejs async queue
global.gc();
}
}
AllTest();