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

Side by Side Diff: LayoutTests/webmidi/legacy-ports.html

Issue 518633003: [ABANDONED] [WebMIDI] Support the legacy MIDIAccess port API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@webmidi-input-map
Patch Set: Created 6 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
« no previous file with comments | « no previous file | LayoutTests/webmidi/legacy-ports-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description("Tests the legacy MIDI port API support.");
9
10 window.jsTestIsAsync = true;
11
12 navigator.requestMIDIAccess().then(function(access) {
13 window.access = access;
14 shouldBeEqualToString('typeof(access.inputs)', 'function');
15 shouldBeEqualToString('typeof(access.outputs)', 'function');
16
17 window.inputs = access.inputs();
18 shouldBe('inputs.length', '1');
19 shouldBeEqualToString("inputs[0].id", "MockInputID");
20 shouldBeEqualToString("inputs[0].manufacturer", "MockInputManufacturer");
21 shouldBeEqualToString("inputs[0].name", "MockInputName");
22 shouldBeEqualToString("inputs[0].version", "MockInputVersion");
23
24 window.outputs = access.outputs();
25 shouldBeEqualToString("outputs[0].id", "MockOutputID");
26 shouldBeEqualToString("outputs[0].manufacturer", "MockOutputManufacturer");
27 shouldBeEqualToString("outputs[0].name", "MockOutputName");
28 shouldBeEqualToString("outputs[0].version", "MockOutputVersion");
29 }).catch(function(e) {
30 testFailed('e: ' + e);
31 }).then(finishJSTest, finishJSTest);
32
33 </script>
34 </body>
35 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/webmidi/legacy-ports-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698