OLD | NEW |
| (Empty) |
1 Tests the OfflineAudioContext constructor | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 PASS new OfflineAudioContext(1, 0, 44100) threw exception SyntaxError: Failed to
construct 'OfflineAudioContext': number of frames cannot be zero.. | |
7 PASS context = new OfflineAudioContext(2, 512, 2999) threw exception IndexSizeEr
ror: Failed to construct 'OfflineAudioContext': The sampleRate provided (2999) i
s outside the range [3000, 384000].. | |
8 PASS context = new OfflineAudioContext(2, 512, 3000) did not throw exception. | |
9 PASS context.length is 512 | |
10 PASS context = new OfflineAudioContext(2, 1024, 384000) did not throw exception. | |
11 PASS context.length is 1024 | |
12 PASS context = new OfflineAudioContext(2, 1024, 384001) threw exception IndexSiz
eError: Failed to construct 'OfflineAudioContext': The sampleRate provided (3840
01) is outside the range [3000, 384000].. | |
13 PASS context = new OfflineAudioContext(2, 2048, 8000) did not throw exception. | |
14 PASS context.length is 2048 | |
15 PASS context = new OfflineAudioContext(2, 4096, 11025) did not throw exception. | |
16 PASS context.length is 4096 | |
17 PASS context = new OfflineAudioContext(2, 512, 22050) did not throw exception. | |
18 PASS context.length is 512 | |
19 PASS context = new OfflineAudioContext(2, 512, 44100) did not throw exception. | |
20 PASS context.length is 512 | |
21 PASS context = new OfflineAudioContext(2, 512, 48000) did not throw exception. | |
22 PASS context.length is 512 | |
23 PASS context = new OfflineAudioContext(2, 512, 88200) did not throw exception. | |
24 PASS context.length is 512 | |
25 PASS context.length = 99 did not throw exception. | |
26 PASS context.length is 512 | |
27 PASS context = new OfflineAudioContext(2, 512, 96000) did not throw exception. | |
28 PASS context = new OfflineAudioContext(1, 0, NaN) threw exception TypeError: Fai
led to construct 'OfflineAudioContext': The provided float value is non-finite.. | |
29 PASS context = new OfflineAudioContext(1, 0, Infinity) threw exception TypeError
: Failed to construct 'OfflineAudioContext': The provided float value is non-fin
ite.. | |
30 PASS context = new OfflineAudioContext(7, 512, 48000) did not throw exception. | |
31 PASS context.destination.channelCount is 7 | |
32 PASS context.destination.maxChannelCount is 7 | |
33 PASS context.destination.channelCountMode is "explicit" | |
34 PASS context.destination.channelInterpretation is "speakers" | |
35 PASS successfullyParsed is true | |
36 | |
37 TEST COMPLETE | |
38 | |
OLD | NEW |