OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
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 <script> | 8 <script> |
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> | |
22 </body> | 21 </body> |
23 </html> | 22 </html> |
OLD | NEW |