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

Side by Side Diff: LayoutTests/webmidi/send-messages.html

Issue 1339123002: Remove some usage of testRunner.setPermission. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@notifications-flakyness
Patch Set: review comments Created 5 years, 3 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="../resources/permissions-helper.js"></script> 5 <script src="../resources/permissions-helper.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 9
10 description("Test if various kinds of MIDI messages can be validated."); 10 description("Test if various kinds of MIDI messages can be validated.");
11 11
12 shouldBeDefined("testRunner.setPermission");
13 shouldBeDefined("navigator.requestMIDIAccess"); 12 shouldBeDefined("navigator.requestMIDIAccess");
14 13
15 window.jsTestIsAsync = true; 14 window.jsTestIsAsync = true;
16 15
17 PermissionsHelper.setPermission('midi-sysex', 'granted').then(function() { 16 PermissionsHelper.setPermission('midi-sysex', 'granted').then(function() {
18 return navigator.requestMIDIAccess({sysex: true}); 17 return navigator.requestMIDIAccess({sysex: true});
19 }).then(function(a) { 18 }).then(function(a) {
20 output = a.outputs.values().next().value; 19 output = a.outputs.values().next().value;
21 20
22 // Note on(off). 21 // Note on(off).
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 shouldThrow('output.send(new Uint8Array(), Infinity)'); 98 shouldThrow('output.send(new Uint8Array(), Infinity)');
100 99
101 finishJSTest(); 100 finishJSTest();
102 }).catch(function () { 101 }).catch(function () {
103 testFailed("requestMIDIAccess() return an error."); 102 testFailed("requestMIDIAccess() return an error.");
104 }); 103 });
105 104
106 </script> 105 </script>
107 </body> 106 </body>
108 </html> 107 </html>
OLDNEW
« no previous file with comments | « LayoutTests/webmidi/permission-expected.txt ('k') | LayoutTests/webmidi/send-messages-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698