Index: third_party/WebKit/LayoutTests/webmidi/send-messages.html |
diff --git a/third_party/WebKit/LayoutTests/webmidi/send-messages.html b/third_party/WebKit/LayoutTests/webmidi/send-messages.html |
index bac50ee2a029a7928776ed6f22ea45b6549764bb..2073dce820b1b02274b9a3e1cd679712dfba50f5 100644 |
--- a/third_party/WebKit/LayoutTests/webmidi/send-messages.html |
+++ b/third_party/WebKit/LayoutTests/webmidi/send-messages.html |
@@ -13,7 +13,8 @@ shouldBeDefined("navigator.requestMIDIAccess"); |
window.jsTestIsAsync = true; |
-PermissionsHelper.setPermission('midi-sysex', 'granted').then(function() { |
+Promise.all([PermissionsHelper.setPermission('midi', 'granted'), |
+ PermissionsHelper.setPermission('midi-sysex', 'granted')]).then(function() { |
return navigator.requestMIDIAccess({sysex: true}); |
}).then(function(a) { |
output = a.outputs.values().next().value; |