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

Unified Diff: LayoutTests/webmidi/requestmidiaccess.html

Issue 18858006: Implement MIDIOutput.send() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: forward declare MIDIAccess Created 7 years, 5 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 | Source/modules/webmidi/MIDIAccess.h » ('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 67167c6c96b4cbb340bc808f4a8671293c0f305d..0696dc7a2544769704da52862ac1dbfd7ad0d56e 100644
--- a/LayoutTests/webmidi/requestmidiaccess.html
+++ b/LayoutTests/webmidi/requestmidiaccess.html
@@ -45,6 +45,16 @@ function successCallback1(a) {
testFailed('output attributes are not correct');
}
+ // Test sending of MIDI data with a Uint8Array.
+ var typedArrayData = new Uint8Array([0x90, 0x45, 0x7f]);
+ output.send(typedArrayData);
+
+ // Test sending of MIDI data with a regular Array.
+ output.send([0x90, 0x45, 0x7f]);
+
+ // Test sending of MIDI data with a regular Array giving an explicit timestamp.
+ output.send([0x90, 0x45, 0x7f], performance.now());
+
// Now test System Exclusive access - our test mock should not allow this type of access.
try {
navigator.requestMIDIAccess( { sysex: true } ).then(successCallback2, errorCallback2);
« no previous file with comments | « no previous file | Source/modules/webmidi/MIDIAccess.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698