28540a0679e4394dd9c40907b0a8eeb613eca2ae
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / webmidi / requestmidiaccess-expected.txt
1 Tests navigator.requestMIDIAccess.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 PASS requestMIDIAccess() succeeded with access [object MIDIAccess].
7 PASS access.sysexEnabled is defined.
8 PASS access.sysexEnabled is false
9 PASS access.inputs.size is 1
10 PASS access.outputs.size is 1
11 for (var input of inputs.values())
12 PASS input.id is "MockInputID"
13 PASS input.manufacturer is "MockInputManufacturer"
14 PASS input.name is "MockInputName"
15 PASS input.version is "MockInputVersion"
16 for (var input of inputs.keys())
17 PASS inputKey is "MockInputID"
18 for (var input of inputs.entries())
19 PASS entry[0] is inputKey
20 PASS entry[1] is input
21 for (var input of inputs)
22 PASS entry[0] is inputKey
23 PASS entry[1] is input
24 PASS inputs.has('MockInputID') is true
25 PASS inputs.has('MockOutputID') is false
26 PASS inputs.get('MockInputID') is input
27 PASS inputs.get('MockOutputID') is undefined.
28 for (var output of outputs.values())
29 PASS output.id is "MockOutputID"
30 PASS output.manufacturer is "MockOutputManufacturer"
31 PASS output.name is "MockOutputName"
32 PASS output.version is "MockOutputVersion"
33 for (var output of outputs.keys())
34 PASS outputKey is "MockOutputID"
35 for (var output of outputs.entries())
36 PASS entry[0] is outputKey
37 PASS entry[1] is output
38 for (var output of outputs)
39 PASS entry[0] is outputKey
40 PASS entry[1] is output
41 PASS outputs.has('MockOutputID') is true
42 PASS outputs.has('MockInputID') is false
43 PASS outputs.get('MockOutputID') is output
44 PASS outputs.get('MockInputID') is undefined.
45 PASS a note on message is sent without timestamp
46 PASS a note on message is sent with timestamp
47 PASS output.send([0xfff, 0x45, 0x7f]) threw exception TypeError: Failed to execute 'send' on 'MIDIOutput': The value at index 0 (4095) is greater than 0xFF..
48 PASS output.send([0xf0, 0x45, 0xf7]) threw exception InvalidAccessError: Failed to execute 'send' on 'MIDIOutput': System exclusive message is not allowed at index 0 (240)..
49 PASS requestMIDIAccess() was correctly blocked for System Exclusive access with error [object DOMError].
50 PASS successfullyParsed is true
51
52 TEST COMPLETE
53