| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
| 5 <script src="../http/tests/resources/permissions-helper.js"></script> | 5 <script src="../http/tests/resources/permissions-helper.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <script> | 8 <script> |
| 9 | 9 |
| 10 description("Test if various kinds of MIDI messages can be validated."); | 10 description("Test if various kinds of MIDI messages can be validated."); |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 // Invalid timestamps. | 94 // Invalid timestamps. |
| 95 shouldThrow('output.send([], NaN)'); | 95 shouldThrow('output.send([], NaN)'); |
| 96 shouldThrow('output.send([], Infinity)'); | 96 shouldThrow('output.send([], Infinity)'); |
| 97 shouldThrow('output.send(new Uint8Array(), NaN)'); | 97 shouldThrow('output.send(new Uint8Array(), NaN)'); |
| 98 shouldThrow('output.send(new Uint8Array(), Infinity)'); | 98 shouldThrow('output.send(new Uint8Array(), Infinity)'); |
| 99 | 99 |
| 100 finishJSTest(); | 100 finishJSTest(); |
| 101 }).catch(function () { | 101 }).catch(function () { |
| 102 testFailed("requestMIDIAccess() return an error."); | 102 testFailed("requestMIDIAccess() return an error."); |
| 103 finishJSTest(); |
| 103 }); | 104 }); |
| 104 | 105 |
| 105 </script> | 106 </script> |
| 106 </body> | 107 </body> |
| 107 </html> | 108 </html> |
| OLD | NEW |