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="../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description("Test if requestMIDIAccess is available."); | 8 description("Test if requestMIDIAccess is available."); |
9 | 9 |
10 shouldBeDefined("navigator.requestMIDIAccess"); | 10 shouldBeDefined("navigator.requestMIDIAccess"); |
11 | 11 |
12 var promise = navigator.requestMIDIAccess(); | 12 var promise = navigator.requestMIDIAccess(); |
13 shouldBeDefined("promise"); | 13 shouldBeDefined("promise"); |
14 | 14 |
15 shouldBeDefined("promise.then"); | 15 shouldBeDefined("promise.then"); |
16 | 16 |
17 promise.then(function(){}, function(){}); | 17 promise.then(function(){}, function(){}); |
18 | 18 |
19 </script> | 19 </script> |
20 </body> | 20 </body> |
21 </html> | 21 </html> |
OLD | NEW |