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

Unified Diff: third_party/WebKit/LayoutTests/webmidi/send-messages.html

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: update comment, add TODO Created 3 years, 8 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
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.");
« no previous file with comments | « third_party/WebKit/LayoutTests/webaudio/dom-exceptions-expected.txt ('k') | third_party/WebKit/Source/bindings/core/v8/ToV8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698