Index: third_party/WebKit/LayoutTests/webmidi/send-messages.html |
diff --git a/third_party/WebKit/LayoutTests/webmidi/send-messages.html b/third_party/WebKit/LayoutTests/webmidi/send-messages.html |
index 2073dce820b1b02274b9a3e1cd679712dfba50f5..53d936738bed33a90adb5ca06430ce209c34a8ad 100644 |
--- a/third_party/WebKit/LayoutTests/webmidi/send-messages.html |
+++ b/third_party/WebKit/LayoutTests/webmidi/send-messages.html |
@@ -98,6 +98,11 @@ Promise.all([PermissionsHelper.setPermission('midi', 'granted'), |
shouldThrow('output.send(new Uint8Array(), NaN)'); |
shouldThrow('output.send(new Uint8Array(), Infinity)'); |
+ if (window.SharedArrayBuffer) { |
+ shouldThrow('output.send(new Uint8Array(new SharedArrayBuffer(4)))'); |
+ shouldThrow('output.send(new Uint8Array(new SharedArrayBuffer(4), 0))'); |
+ } |
+ |
finishJSTest(); |
}).catch(function () { |
testFailed("requestMIDIAccess() return an error."); |