OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css"> | 4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css"> |
5 <script src="../fast/js/resources/js-test-pre.js"></script> | 5 <script src="../fast/js/resources/js-test-pre.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <p id="description"></p> | 8 <p id="description"></p> |
9 <div id="console"></div> | 9 <div id="console"></div> |
10 <script> | 10 <script> |
(...skipping 29 matching lines...) Expand all Loading... |
40 output.manufacturer == "MockOutputManufacturer" && | 40 output.manufacturer == "MockOutputManufacturer" && |
41 output.name == "MockOutputName" && | 41 output.name == "MockOutputName" && |
42 output.version == "MockOutputVersion") { | 42 output.version == "MockOutputVersion") { |
43 testPassed('output attributes are correct'); | 43 testPassed('output attributes are correct'); |
44 } else { | 44 } else { |
45 testFailed('output attributes are not correct'); | 45 testFailed('output attributes are not correct'); |
46 } | 46 } |
47 | 47 |
48 // Now test System Exclusive access - our test mock should not allow this ty
pe of access. | 48 // Now test System Exclusive access - our test mock should not allow this ty
pe of access. |
49 try { | 49 try { |
50 navigator.requestMIDIAccess( { sysexEnabled: true } ).then(successCallba
ck2, errorCallback2); | 50 navigator.requestMIDIAccess( { sysex: true } ).then(successCallback2, er
rorCallback2); |
51 testPassed('navigator.requestMIDIAccess() did not throw exception.'); | 51 testPassed('navigator.requestMIDIAccess() did not throw exception.'); |
52 } catch(e) { | 52 } catch(e) { |
53 testFailed('navigator.requestMIDIAccess() should not throw exception.'); | 53 testFailed('navigator.requestMIDIAccess() should not throw exception.'); |
54 finishJSTest(); | 54 finishJSTest(); |
55 } | 55 } |
56 } | 56 } |
57 | 57 |
58 function errorCallback1(error) { | 58 function errorCallback1(error) { |
59 testFailed('requestMIDIAccess() error callback should not be called when req
uesting basic access.'); | 59 testFailed('requestMIDIAccess() error callback should not be called when req
uesting basic access.'); |
60 finishJSTest(); | 60 finishJSTest(); |
(...skipping 19 matching lines...) Expand all Loading... |
80 testFailed('navigator.requestMIDIAccess() should not throw exception.'); | 80 testFailed('navigator.requestMIDIAccess() should not throw exception.'); |
81 finishJSTest(); | 81 finishJSTest(); |
82 } | 82 } |
83 | 83 |
84 window.successfullyParsed = true; | 84 window.successfullyParsed = true; |
85 | 85 |
86 </script> | 86 </script> |
87 <script src="../fast/js/resources/js-test-post.js"></script> | 87 <script src="../fast/js/resources/js-test-post.js"></script> |
88 </body> | 88 </body> |
89 </html> | 89 </html> |
OLD | NEW |