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

Unified Diff: LayoutTests/webmidi/permission.html

Issue 208423016: Web MIDI API renaming: the last step of three step changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 9 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/send_messages.html » ('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 03e4819c185fd69b94468eafd25e22be674fc89d..57fb81ebaeb81ce87d39591559cde3dde069c7b6 100644
--- a/LayoutTests/webmidi/permission.html
+++ b/LayoutTests/webmidi/permission.html
@@ -8,10 +8,6 @@
description("Test if sysex permission request is handled.");
-// FIXME: remove following workaround once testRunner in Chromium has a new interface.
-if (!testRunner.setMIDISysexPermission)
- testRunner.setMIDISysexPermission = testRunner.setMIDISysExPermission;
-
shouldBeDefined("testRunner.setMIDISysexPermission");
shouldBeDefined("navigator.requestMIDIAccess");
@@ -22,7 +18,7 @@ var finishSuccessfully = function () {
finishJSTest();
}
-var rejectSysEx = function (next) {
+var rejectSysex = function (next) {
testRunner.setMIDISysexPermission(false);
promise = navigator.requestMIDIAccess({sysex: true});
shouldBeDefined("promise");
@@ -39,7 +35,7 @@ var rejectSysEx = function (next) {
});
}
-var acceptSysEx = function (next) {
+var acceptSysex = function (next) {
testRunner.setMIDISysexPermission(true);
promise = navigator.requestMIDIAccess({sysex: true});
shouldBeDefined("promise");
@@ -60,7 +56,7 @@ var acceptSysEx = function (next) {
});
}
-rejectSysEx(acceptSysEx);
+rejectSysex(acceptSysex);
</script>
</body>
« no previous file with comments | « no previous file | LayoutTests/webmidi/send_messages.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698