| 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 sysex permission request is handled."); | 10 description("Test if sysex permission request is handled."); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 next(); | 52 next(); |
| 53 else | 53 else |
| 54 finishSuccessfully(); | 54 finishSuccessfully(); |
| 55 }, function (error) { | 55 }, function (error) { |
| 56 testFailed("sysex permission request should be accepted."); | 56 testFailed("sysex permission request should be accepted."); |
| 57 finishJSTest(); | 57 finishJSTest(); |
| 58 }); | 58 }); |
| 59 }); | 59 }); |
| 60 } | 60 } |
| 61 | 61 |
| 62 rejectSysex(acceptSysex); | 62 PermissionsHelper.setPermission('midi', 'granted').then(function() { |
| 63 rejectSysex(acceptSysex); |
| 64 }); |
| 63 | 65 |
| 64 </script> | 66 </script> |
| 65 </body> | 67 </body> |
| 66 </html> | 68 </html> |
| OLD | NEW |