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 | 10 PASS access.outputs.size is 1 |
11 for (var input of inputs.values()) | 11 for (var input of inputs.values()) |
12 PASS input.id is "MockInputID" | 12 PASS input.id is "MockInputID" |
13 PASS input.manufacturer is "MockInputManufacturer" | 13 PASS input.manufacturer is "MockInputManufacturer" |
14 PASS input.name is "MockInputName" | 14 PASS input.name is "MockInputName" |
15 PASS input.version is "MockInputVersion" | 15 PASS input.version is "MockInputVersion" |
| 16 PASS input.state is "opened" |
| 17 PASS input.type is "input" |
16 for (var input of inputs.keys()) | 18 for (var input of inputs.keys()) |
17 PASS inputKey is "MockInputID" | 19 PASS inputKey is "MockInputID" |
18 for (var input of inputs.entries()) | 20 for (var input of inputs.entries()) |
19 PASS entry[0] is inputKey | 21 PASS entry[0] is inputKey |
20 PASS entry[1] is input | 22 PASS entry[1] is input |
21 for (var input of inputs) | 23 for (var input of inputs) |
22 PASS entry[0] is inputKey | 24 PASS entry[0] is inputKey |
23 PASS entry[1] is input | 25 PASS entry[1] is input |
24 PASS inputs.has('MockInputID') is true | 26 PASS inputs.has('MockInputID') is true |
25 PASS inputs.has('MockOutputID') is false | 27 PASS inputs.has('MockOutputID') is false |
26 PASS inputs.get('MockInputID') is input | 28 PASS inputs.get('MockInputID') is input |
27 PASS inputs.get('MockOutputID') is undefined. | 29 PASS inputs.get('MockOutputID') is undefined. |
28 inputs.forEach(...) | 30 inputs.forEach(...) |
29 PASS forEachInput is input | 31 PASS forEachInput is input |
30 PASS forEachInputKey is inputKey | 32 PASS forEachInputKey is inputKey |
31 PASS forEachMap is inputs | 33 PASS forEachMap is inputs |
32 for (var output of outputs.values()) | 34 for (var output of outputs.values()) |
33 PASS output.id is "MockOutputID" | 35 PASS output.id is "MockOutputID" |
34 PASS output.manufacturer is "MockOutputManufacturer" | 36 PASS output.manufacturer is "MockOutputManufacturer" |
35 PASS output.name is "MockOutputName" | 37 PASS output.name is "MockOutputName" |
36 PASS output.version is "MockOutputVersion" | 38 PASS output.version is "MockOutputVersion" |
| 39 PASS output.state is "opened" |
| 40 PASS output.type is "output" |
37 for (var output of outputs.keys()) | 41 for (var output of outputs.keys()) |
38 PASS outputKey is "MockOutputID" | 42 PASS outputKey is "MockOutputID" |
39 for (var output of outputs.entries()) | 43 for (var output of outputs.entries()) |
40 PASS entry[0] is outputKey | 44 PASS entry[0] is outputKey |
41 PASS entry[1] is output | 45 PASS entry[1] is output |
42 for (var output of outputs) | 46 for (var output of outputs) |
43 PASS entry[0] is outputKey | 47 PASS entry[0] is outputKey |
44 PASS entry[1] is output | 48 PASS entry[1] is output |
45 PASS outputs.has('MockOutputID') is true | 49 PASS outputs.has('MockOutputID') is true |
46 PASS outputs.has('MockInputID') is false | 50 PASS outputs.has('MockInputID') is false |
47 PASS outputs.get('MockOutputID') is output | 51 PASS outputs.get('MockOutputID') is output |
48 PASS outputs.get('MockInputID') is undefined. | 52 PASS outputs.get('MockInputID') is undefined. |
49 outputs.forEach(...) | 53 outputs.forEach(...) |
50 PASS forEachOutput is output | 54 PASS forEachOutput is output |
51 PASS forEachOutputKey is outputKey | 55 PASS forEachOutputKey is outputKey |
52 PASS forEachMap is outputs | 56 PASS forEachMap is outputs |
53 PASS a note on message is sent without timestamp | 57 PASS a note on message is sent without timestamp |
54 PASS a note on message is sent with timestamp | 58 PASS a note on message is sent with timestamp |
55 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.. | 59 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.. |
56 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).. | 60 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).. |
57 PASS requestMIDIAccess() was correctly blocked for System Exclusive access with
error [object DOMError]. | 61 PASS requestMIDIAccess() was correctly blocked for System Exclusive access with
error [object DOMError]. |
58 PASS successfullyParsed is true | 62 PASS successfullyParsed is true |
59 | 63 |
60 TEST COMPLETE | 64 TEST COMPLETE |
61 | 65 |
OLD | NEW |