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

Unified Diff: LayoutTests/webmidi/send_messages.html

Issue 927123002: Add TypeChecking=Unrestricted to the MIDIOutput interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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/send_messages-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/webmidi/send_messages.html
diff --git a/LayoutTests/webmidi/send_messages.html b/LayoutTests/webmidi/send_messages.html
index 7343268792718132e33eec006d5a129d182fc66f..4881b783157333fe24762417d85de74934c408fe 100644
--- a/LayoutTests/webmidi/send_messages.html
+++ b/LayoutTests/webmidi/send_messages.html
@@ -91,6 +91,12 @@ navigator.requestMIDIAccess({sysex: true}).then(function (a) {
shouldThrow('output.send([0x80, 0x00, 0x00, 0xf4])');
shouldThrow('output.send([0xf0, 0xff, 0xf4, 0xf7])');
+ // Invalid timestamps.
+ shouldThrow('output.send([], NaN)');
+ shouldThrow('output.send([], Infinity)');
+ shouldThrow('output.send(new Uint8Array(), NaN)');
+ shouldThrow('output.send(new Uint8Array(), Infinity)');
+
finishJSTest();
}, function () {
testFailed("requestMIDIAccess() return an error.");
« no previous file with comments | « no previous file | LayoutTests/webmidi/send_messages-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698