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

Side by Side Diff: android_webview/tools/WebViewShell/test/blink-apis/webmidi/requestmidiaccess.html

Issue 1785283005: [WebView] Reorganize all of the WebView Shell apks into their own dir. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <script src="../../resources/js-test.js"></script>
4 <body>
5 <script type="text/javascript">
6 description("Test navigator.requestMIDIAccess API in WebView");
7 window.jsTestIsAsync = true;
8
9 function onMIDIError(errorMessage) {
10 testFailed('requestMIDIAccess error callback, reason: ' + errorMessage);
11 finishJSTest();
12 }
13
14 function onMIDISuccess(access) {
15 window.access = access;
16 shouldBeTrue('access.sysexEnabled');
17 testPassed('requestMIDIAccess with option sysex:true succeeded.');
18 finishJSTest();
19 }
20
21 navigator.requestMIDIAccess({sysex:true}).then(
22 onMIDISuccess, onMIDIError);
23 </script>
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698