diff options
author | fs@opera.com <fs@opera.com> | 2015-02-17 09:48:20 +0000 |
---|---|---|
committer | fs@opera.com <fs@opera.com> | 2015-02-17 09:48:20 +0000 |
commit | 3e6e188c6993642f1cd3aa5f3876d32875019040 (patch) | |
tree | a9e9078317568518583eb4208d725bcf6725cd30 /third_party/WebKit/LayoutTests/webmidi | |
parent | babacdbd54134d38fb9310b1f8dcfda6e2efa952 (diff) | |
download | chromium_src-3e6e188c6993642f1cd3aa5f3876d32875019040.zip chromium_src-3e6e188c6993642f1cd3aa5f3876d32875019040.tar.gz chromium_src-3e6e188c6993642f1cd3aa5f3876d32875019040.tar.bz2 |
Add TypeChecking=Unrestricted to the MIDIOutput interface
BUG=354298
Review URL: https://codereview.chromium.org/927123002
git-svn-id: svn://svn.chromium.org/blink/trunk@190302 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/webmidi')
-rw-r--r-- | third_party/WebKit/LayoutTests/webmidi/send_messages-expected.txt | 4 | ||||
-rw-r--r-- | third_party/WebKit/LayoutTests/webmidi/send_messages.html | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/webmidi/send_messages-expected.txt b/third_party/WebKit/LayoutTests/webmidi/send_messages-expected.txt index e43015f..4ca4bd2 100644 --- a/third_party/WebKit/LayoutTests/webmidi/send_messages-expected.txt +++ b/third_party/WebKit/LayoutTests/webmidi/send_messages-expected.txt @@ -37,6 +37,10 @@ PASS output.send([0x80, 0xf4, 0x00, 0x00]) threw exception TypeError: Failed to PASS output.send([0x80, 0x00, 0xf4, 0x00]) threw exception TypeError: Failed to execute 'send' on 'MIDIOutput': Unexpected status byte at index at index 2 (244).. PASS output.send([0x80, 0x00, 0x00, 0xf4]) threw exception TypeError: Failed to execute 'send' on 'MIDIOutput': Reserved status is not allowed at index 3 (244).. PASS output.send([0xf0, 0xff, 0xf4, 0xf7]) threw exception TypeError: Failed to execute 'send' on 'MIDIOutput': System exclusive message contains a status byte at index 2 (244).. +PASS output.send([], NaN) threw exception TypeError: Failed to execute 'send' on 'MIDIOutput': The provided double value is non-finite.. +PASS output.send([], Infinity) threw exception TypeError: Failed to execute 'send' on 'MIDIOutput': The provided double value is non-finite.. +PASS output.send(new Uint8Array(), NaN) threw exception TypeError: Failed to execute 'send' on 'MIDIOutput': The provided double value is non-finite.. +PASS output.send(new Uint8Array(), Infinity) threw exception TypeError: Failed to execute 'send' on 'MIDIOutput': The provided double value is non-finite.. PASS successfullyParsed is true TEST COMPLETE diff --git a/third_party/WebKit/LayoutTests/webmidi/send_messages.html b/third_party/WebKit/LayoutTests/webmidi/send_messages.html index 7343268..4881b78 100644 --- a/third_party/WebKit/LayoutTests/webmidi/send_messages.html +++ b/third_party/WebKit/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."); |