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

Unified Diff: LayoutTests/webmidi/requestmidiaccess.html

Issue 942153004: Web MIDI: Add MIDIPortState state attribute to MIDIPort (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/webmidi/requestmidiaccess-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/webmidi/requestmidiaccess.html
diff --git a/LayoutTests/webmidi/requestmidiaccess.html b/LayoutTests/webmidi/requestmidiaccess.html
index 6ec8bd07b6711eb1387fc35dc1b0af5ae6fcf079..5d3059982c9f098a005c305dead0241c4d98e73b 100644
--- a/LayoutTests/webmidi/requestmidiaccess.html
+++ b/LayoutTests/webmidi/requestmidiaccess.html
@@ -20,6 +20,10 @@ function checkInputMap(inputs) {
shouldBeEqualToString("input.manufacturer", "MockInputManufacturer");
shouldBeEqualToString("input.name", "MockInputName");
shouldBeEqualToString("input.version", "MockInputVersion");
+ // FIXME: Once Web MIDI introduces open(), the initial state will be
+ // changed to "connected".
+ shouldBeEqualToString("input.state", "opened");
+ shouldBeEqualToString("input.type", "input");
}
debug("for (var input of inputs.keys())");
for (var key of inputs.keys()) {
@@ -62,6 +66,10 @@ function checkOutputMap(outputs) {
shouldBeEqualToString("output.manufacturer", "MockOutputManufacturer");
shouldBeEqualToString("output.name", "MockOutputName");
shouldBeEqualToString("output.version", "MockOutputVersion");
+ // FIXME: Once Web MIDI introduces open(), the initial state will be
+ // changed to "connected".
+ shouldBeEqualToString("output.state", "opened");
+ shouldBeEqualToString("output.type", "output");
}
debug("for (var output of outputs.keys())");
for (var key of outputs.keys()) {
« no previous file with comments | « no previous file | LayoutTests/webmidi/requestmidiaccess-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698