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

Side by Side Diff: third_party/WebKit/LayoutTests/webmidi/loopback-receive.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: remove unused method 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 unified diff | Download patch
OLDNEW
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 midimessage event handler work."); 10 description("Test if midimessage event handler work.");
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 var output = a.outputs.values().next().value; 64 var output = a.outputs.values().next().value;
65 for (var i = 0; i < testData.length; ++i) 65 for (var i = 0; i < testData.length; ++i)
66 output.send(testData[i]); 66 output.send(testData[i]);
67 }, function () { 67 }, function () {
68 testFailed("requestMIDIAccess() return an error."); 68 testFailed("requestMIDIAccess() return an error.");
69 reject(); 69 reject();
70 }); 70 });
71 }); 71 });
72 } 72 }
73 73
74 PermissionsHelper.setPermission('midi-sysex', 'granted').then(function() { 74 Promise.all([PermissionsHelper.setPermission('midi', 'granted'),
75 PermissionsHelper.setPermission('midi-sysex', 'granted')]).then(fun ction() {
75 test(false).then(test.bind(null, true)).then(finishJSTest, finishJSTest); 76 test(false).then(test.bind(null, true)).then(finishJSTest, finishJSTest);
76 }); 77 });
77 78
78 </script> 79 </script>
79 </body> 80 </body>
80 </html> 81 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698