OLD | NEW |
1 Tests navigator.requestMIDIAccess. | 1 Tests navigator.requestMIDIAccess. |
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 requestMIDIAccess() succeeded with access [object MIDIAccess]. | 6 PASS requestMIDIAccess() succeeded with access [object MIDIAccess]. |
7 PASS access.sysexEnabled is defined. | 7 PASS access.sysexEnabled is defined. |
8 PASS access.sysexEnabled is false | 8 PASS access.sysexEnabled is false |
9 PASS access.inputs.size is 1 | 9 PASS access.inputs.size is 1 |
| 10 PASS access.outputs.size is 1 |
| 11 for (var input of inputs.values()) |
10 PASS input.id is "MockInputID" | 12 PASS input.id is "MockInputID" |
11 PASS input.manufacturer is "MockInputManufacturer" | 13 PASS input.manufacturer is "MockInputManufacturer" |
12 PASS input.name is "MockInputName" | 14 PASS input.name is "MockInputName" |
13 PASS input.version is "MockInputVersion" | 15 PASS input.version is "MockInputVersion" |
| 16 for (var input of inputs.keys()) |
14 PASS inputKey is "MockInputID" | 17 PASS inputKey is "MockInputID" |
| 18 for (var input of inputs.entries()) |
15 PASS entry[0] is inputKey | 19 PASS entry[0] is inputKey |
16 PASS entry[1] is input | 20 PASS entry[1] is input |
17 PASS inputValue is input | 21 for (var input of inputs) |
| 22 PASS entry[0] is inputKey |
| 23 PASS entry[1] is input |
18 PASS inputs.has('MockInputID') is true | 24 PASS inputs.has('MockInputID') is true |
19 PASS inputs.has('MockOutputID') is false | 25 PASS inputs.has('MockOutputID') is false |
20 PASS inputs.get('MockInputID') is input | 26 PASS inputs.get('MockInputID') is input |
21 PASS inputs.get('MockOutputID') is undefined. | 27 PASS inputs.get('MockOutputID') is undefined. |
| 28 for (var output of outputs.values()) |
22 PASS output.id is "MockOutputID" | 29 PASS output.id is "MockOutputID" |
23 PASS output.manufacturer is "MockOutputManufacturer" | 30 PASS output.manufacturer is "MockOutputManufacturer" |
24 PASS output.name is "MockOutputName" | 31 PASS output.name is "MockOutputName" |
25 PASS output.version is "MockOutputVersion" | 32 PASS output.version is "MockOutputVersion" |
| 33 for (var output of outputs.keys()) |
26 PASS outputKey is "MockOutputID" | 34 PASS outputKey is "MockOutputID" |
| 35 for (var output of outputs.entries()) |
27 PASS entry[0] is outputKey | 36 PASS entry[0] is outputKey |
28 PASS entry[1] is output | 37 PASS entry[1] is output |
29 PASS outputValue is output | 38 for (var output of outputs) |
| 39 PASS entry[0] is outputKey |
| 40 PASS entry[1] is output |
30 PASS outputs.has('MockOutputID') is true | 41 PASS outputs.has('MockOutputID') is true |
31 PASS outputs.has('MockInputID') is false | 42 PASS outputs.has('MockInputID') is false |
32 PASS outputs.get('MockOutputID') is output | 43 PASS outputs.get('MockOutputID') is output |
33 PASS outputs.get('MockInputID') is undefined. | 44 PASS outputs.get('MockInputID') is undefined. |
34 PASS a note on message is sent without timestamp | 45 PASS a note on message is sent without timestamp |
35 PASS a note on message is sent with timestamp | 46 PASS a note on message is sent with timestamp |
36 PASS output.send([0xfff, 0x45, 0x7f]) threw exception TypeError: Failed to execu
te 'send' on 'MIDIOutput': The value at index 0 (4095) is greater than 0xFF.. | 47 PASS output.send([0xfff, 0x45, 0x7f]) threw exception TypeError: Failed to execu
te 'send' on 'MIDIOutput': The value at index 0 (4095) is greater than 0xFF.. |
37 PASS output.send([0xf0, 0x45, 0xf7]) threw exception InvalidAccessError: Failed
to execute 'send' on 'MIDIOutput': System exclusive message is not allowed at in
dex 0 (240).. | 48 PASS output.send([0xf0, 0x45, 0xf7]) threw exception InvalidAccessError: Failed
to execute 'send' on 'MIDIOutput': System exclusive message is not allowed at in
dex 0 (240).. |
38 PASS requestMIDIAccess() was correctly blocked for System Exclusive access with
error [object DOMError]. | 49 PASS requestMIDIAccess() was correctly blocked for System Exclusive access with
error [object DOMError]. |
39 PASS successfullyParsed is true | 50 PASS successfullyParsed is true |
40 | 51 |
41 TEST COMPLETE | 52 TEST COMPLETE |
42 | 53 |
OLD | NEW |