OLD | NEW |
| (Empty) |
1 Test Basic Functionality of copyFromChannel and AudioBuffer.copyToChannel | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 PASS AudioBuffer.prototype.copyFromChannel is defined. | |
7 PASS buffer = context.createBuffer(3, 16, context.sampleRate) did not throw an e
xception. | |
8 PASS buffer.copyFromChannel(null, 0) threw TypeError: Failed to execute 'copyFro
mChannel' on 'AudioBuffer': parameter 1 is not of type 'Float32Array'.. | |
9 PASS buffer.copyFromChannel(context, 0) threw TypeError: Failed to execute 'copy
FromChannel' on 'AudioBuffer': parameter 1 is not of type 'Float32Array'.. | |
10 PASS buffer.copyFromChannel(x, -1) threw IndexSizeError: Failed to execute 'copy
FromChannel' on 'AudioBuffer': The channelNumber provided (-1) is outside the ra
nge [0, 2].. | |
11 PASS buffer.copyFromChannel(x, 3) threw IndexSizeError: Failed to execute 'copyF
romChannel' on 'AudioBuffer': The channelNumber provided (3) is outside the rang
e [0, 2].. | |
12 PASS buffer.copyFromChannel(x, 0, -1) threw IndexSizeError: Failed to execute 'c
opyFromChannel' on 'AudioBuffer': The startInChannel provided (4294967295) is ou
tside the range [0, 16).. | |
13 PASS buffer.copyFromChannel(x, 0, 16) threw IndexSizeError: Failed to execute 'c
opyFromChannel' on 'AudioBuffer': The startInChannel provided (16) is outside th
e range [0, 16).. | |
14 PASS buffer.copyFromChannel(x, 3) threw exception IndexSizeError: Failed to exec
ute 'copyFromChannel' on 'AudioBuffer': The channelNumber provided (3) is outsid
e the range [0, 2].. | |
15 PASS AudioBuffer.prototype.copyToChannel is defined. | |
16 PASS buffer.copyToChannel(null, 0) threw TypeError: Failed to execute 'copyToCha
nnel' on 'AudioBuffer': parameter 1 is not of type 'Float32Array'.. | |
17 PASS buffer.copyToChannel(context, 0) threw TypeError: Failed to execute 'copyTo
Channel' on 'AudioBuffer': parameter 1 is not of type 'Float32Array'.. | |
18 PASS buffer.copyToChannel(x, -1) threw IndexSizeError: Failed to execute 'copyTo
Channel' on 'AudioBuffer': The channelNumber provided (-1) is outside the range
[0, 2].. | |
19 PASS buffer.copyToChannel(x, 3) threw IndexSizeError: Failed to execute 'copyToC
hannel' on 'AudioBuffer': The channelNumber provided (3) is outside the range [0
, 2].. | |
20 PASS buffer.copyToChannel(x, 0, -1) threw IndexSizeError: Failed to execute 'cop
yToChannel' on 'AudioBuffer': The startInChannel provided (4294967295) is outsid
e the range [0, 16).. | |
21 PASS buffer.copyToChannel(x, 0, 16) threw IndexSizeError: Failed to execute 'cop
yToChannel' on 'AudioBuffer': The startInChannel provided (16) is outside the ra
nge [0, 16).. | |
22 PASS buffer.copyToChannel(x, 3) threw exception IndexSizeError: Failed to execut
e 'copyToChannel' on 'AudioBuffer': The channelNumber provided (3) is outside th
e range [0, 2].. | |
23 PASS buffer.copyFromChannel(dst8, 0) is identical to the array [1,2,3,4,5,6,7,8]
. | |
24 PASS buffer.copyFromChannel(dst8, 1) is identical to the array [2,3,4,5,6,7,8,9]
. | |
25 PASS buffer.copyFromChannel(dst8, 2) is identical to the array [3,4,5,6,7,8,9,10
]. | |
26 PASS buffer.copyFromChannel(dst8, 0, 1) is identical to the array [2,3,4,5,6,7,8
,9]. | |
27 PASS buffer.copyFromChannel(dst8, 1, 1) is identical to the array [3,4,5,6,7,8,9
,10]. | |
28 PASS buffer.copyFromChannel(dst8, 2, 1) is identical to the array [4,5,6,7,8,9,1
0,11]. | |
29 PASS buffer.copyFromChannel(dst8, 0, 11) is identical to the array [12,13,14,15,
16,-1,-1,-1]. | |
30 PASS buffer.copyFromChannel(dst8, 1, 11) is identical to the array [13,14,15,16,
17,-1,-1,-1]. | |
31 PASS buffer.copyFromChannel(dst8, 2, 11) is identical to the array [14,15,16,17,
18,-1,-1,-1]. | |
32 PASS buffer.copyFromChannel(dst26, 0) is identical to the array [1,2,3,4,5,6,7,8
,9,10,11,12,13,14,15,16,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]. | |
33 PASS buffer.copyFromChannel(dst26, 1) is identical to the array [2,3,4,5,6,7,8,9
,10,11,12,13,14,15,16,17,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]. | |
34 PASS buffer.copyFromChannel(dst26, 2) is identical to the array [3,4,5,6,7,8,9,1
0,11,12,13,14,15,16,17,18,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]. | |
35 PASS buffer = createConstantBuffer(context, 16, [-1,-1,-1]) did not throw an exc
eption. | |
36 PASS buffer.copyToChannel(src, 0) is identical to the array [1,2,3,4,5,6,7,8,9,1
0,11,12,13,14,15,16]. | |
37 PASS buffer.copyToChannel(src, 1) is identical to the array [1,2,3,4,5,6,7,8,9,1
0,11,12,13,14,15,16]. | |
38 PASS buffer.copyToChannel(src, 2) is identical to the array [1,2,3,4,5,6,7,8,9,1
0,11,12,13,14,15,16]. | |
39 PASS buffer.copyToChannel(src10, 0) is identical to the array [1,2,3,4,5,6,7,8,9
,10,-1,-1,-1,-1,-1,-1]. | |
40 PASS buffer.copyToChannel(src10, 1) is identical to the array [1,2,3,4,5,6,7,8,9
,10,-1,-1,-1,-1,-1,-1]. | |
41 PASS buffer.copyToChannel(src10, 2) is identical to the array [1,2,3,4,5,6,7,8,9
,10,-1,-1,-1,-1,-1,-1]. | |
42 PASS buffer.copyToChannel(src10, 0, 5) is identical to the array [-1,-1,-1,-1,-1
,1,2,3,4,5,6,7,8,9,10,-1]. | |
43 PASS buffer.copyToChannel(src10, 1, 5) is identical to the array [-1,-1,-1,-1,-1
,1,2,3,4,5,6,7,8,9,10,-1]. | |
44 PASS buffer.copyToChannel(src10, 2, 5) is identical to the array [-1,-1,-1,-1,-1
,1,2,3,4,5,6,7,8,9,10,-1]. | |
45 PASS successfullyParsed is true | |
46 | |
47 TEST COMPLETE | |
48 | |
OLD | NEW |