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

Side by Side Diff: third_party/WebKit/LayoutTests/webmidi/permission.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, 4 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 sysex permission request is handled."); 10 description("Test if sysex permission request is handled.");
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 next(); 52 next();
53 else 53 else
54 finishSuccessfully(); 54 finishSuccessfully();
55 }, function (error) { 55 }, function (error) {
56 testFailed("sysex permission request should be accepted."); 56 testFailed("sysex permission request should be accepted.");
57 finishJSTest(); 57 finishJSTest();
58 }); 58 });
59 }); 59 });
60 } 60 }
61 61
62 rejectSysex(acceptSysex); 62 PermissionsHelper.setPermission('midi', 'granted').then(function() {
63 rejectSysex(acceptSysex);
64 });
63 65
64 </script> 66 </script>
65 </body> 67 </body>
66 </html> 68 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698