OLD | NEW |
1 Test Basic Functionality of copyFromChannel and AudioBuffer.copyToChannel | 1 Test Basic Functionality of copyFromChannel and AudioBuffer.copyToChannel |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS AudioBuffer.prototype.copyFromChannel is defined. | 6 PASS AudioBuffer.prototype.copyFromChannel is defined. |
7 PASS buffer = context.createBuffer(3, 16, context.sampleRate) did not throw an e
xception. | 7 PASS buffer = context.createBuffer(3, 16, context.sampleRate) did not throw an e
xception. |
8 PASS buffer.copyFromChannel(null, 0) threw TypeMismatchError: Failed to execute
'copyFromChannel' on 'AudioBuffer': The 1st argument provided is either null, or
an invalid Float32Array object.. | 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 TypeMismatchError: Failed to execu
te 'copyFromChannel' on 'AudioBuffer': The 1st argument provided is either null,
or an invalid Float32Array object.. | 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].. | 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].. | 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).. | 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).. | 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].. | 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. | 15 PASS AudioBuffer.prototype.copyToChannel is defined. |
16 PASS buffer.copyToChannel(null, 0) threw TypeMismatchError: Failed to execute 'c
opyToChannel' on 'AudioBuffer': The 1st argument provided is either null, or an
invalid Float32Array object.. | 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 TypeMismatchError: Failed to execute
'copyToChannel' on 'AudioBuffer': The 1st argument provided is either null, or
an invalid Float32Array object.. | 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].. | 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].. | 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).. | 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).. | 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].. | 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]
. | 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]
. | 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
]. | 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]. | 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]. | 27 PASS buffer.copyFromChannel(dst8, 1, 1) is identical to the array [3,4,5,6,7,8,9
,10]. |
(...skipping 11 matching lines...) Expand all Loading... |
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]. | 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]. | 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]. | 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]. | 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]. | 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]. | 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 | 45 PASS successfullyParsed is true |
46 | 46 |
47 TEST COMPLETE | 47 TEST COMPLETE |
48 | 48 |
OLD | NEW |