Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Unified Diff: third_party/WebKit/LayoutTests/webmidi/send-messages.html

Issue 2116763002: Reland: Web MIDI: use mojom::blink::PermissionService directly to ask permission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for second attempt Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « third_party/WebKit/LayoutTests/webmidi/permission.html ('k') | third_party/WebKit/Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698