Index: third_party/WebKit/LayoutTests/fast/events/constructors/midi-message-event-constructor.html |
diff --git a/third_party/WebKit/LayoutTests/fast/events/constructors/midi-message-event-constructor.html b/third_party/WebKit/LayoutTests/fast/events/constructors/midi-message-event-constructor.html |
index 0631a3904ebad78c681b6d488834266bf9fcae15..46e2da72b42149d83385d8ec1c99ec80cb31d4fe 100644 |
--- a/third_party/WebKit/LayoutTests/fast/events/constructors/midi-message-event-constructor.html |
+++ b/third_party/WebKit/LayoutTests/fast/events/constructors/midi-message-event-constructor.html |
@@ -31,6 +31,11 @@ shouldBe("new MIDIMessageEvent('eventType', { bubbles: true, cancelable: true, d |
shouldBe("new MIDIMessageEvent('eventType', { bubbles: true, cancelable: true, data: data }).cancelable", "true"); |
shouldEvaluateTo("new MIDIMessageEvent('eventType', { bubbles: true, cancelable: true, data: data }).data", data); |
+if (window.SharedArrayBuffer) { |
+ data = new Uint8Array(new SharedArrayBuffer(3)); |
+ shouldThrow("new MIDIMessageEvent('eventType', { data: data })"); |
+} |
+ |
</script> |
</body> |
</html> |