OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../fast/js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 | 8 |
9 description("Test if requestMIDIAccess is available."); | 9 description("Test if requestMIDIAccess is available."); |
10 | 10 |
11 shouldBeDefined("navigator.requestMIDIAccess"); | 11 shouldBeDefined("navigator.requestMIDIAccess"); |
12 | 12 |
13 var promise = navigator.requestMIDIAccess(); | 13 var promise = navigator.requestMIDIAccess(); |
14 shouldBeDefined("promise"); | 14 shouldBeDefined("promise"); |
15 | 15 |
16 shouldBeDefined("promise.then"); | 16 shouldBeDefined("promise.then"); |
17 | 17 |
18 promise.then(function(){}, function(){}) | 18 promise.then(function(){}, function(){}) |
19 | 19 |
20 </script> | 20 </script> |
21 <script src="../fast/js/resources/js-test-post.js"></script> | 21 <script src="../fast/js/resources/js-test-post.js"></script> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |