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

Unified Diff: LayoutTests/webmidi/permission.html

Issue 1100843003: WebMidi: use testRunner.setPermission in addition of .setMIDISysexPermission. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/webmidi/permission-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/webmidi/permission.html
diff --git a/LayoutTests/webmidi/permission.html b/LayoutTests/webmidi/permission.html
index 57fb81ebaeb81ce87d39591559cde3dde069c7b6..60c9e31eb2c68d341f1a1fc68c8a315cd393ee83 100644
--- a/LayoutTests/webmidi/permission.html
+++ b/LayoutTests/webmidi/permission.html
@@ -8,6 +8,7 @@
description("Test if sysex permission request is handled.");
+shouldBeDefined("testRunner.setPermission");
shouldBeDefined("testRunner.setMIDISysexPermission");
shouldBeDefined("navigator.requestMIDIAccess");
@@ -19,6 +20,7 @@ var finishSuccessfully = function () {
}
var rejectSysex = function (next) {
+ testRunner.setPermission('midi-sysex', 'denied', location.origin, location.origin);
testRunner.setMIDISysexPermission(false);
promise = navigator.requestMIDIAccess({sysex: true});
shouldBeDefined("promise");
@@ -36,6 +38,7 @@ var rejectSysex = function (next) {
}
var acceptSysex = function (next) {
+ testRunner.setPermission('midi-sysex', 'granted', location.origin, location.origin);
testRunner.setMIDISysexPermission(true);
promise = navigator.requestMIDIAccess({sysex: true});
shouldBeDefined("promise");
« no previous file with comments | « no previous file | LayoutTests/webmidi/permission-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698