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