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

Unified Diff: third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-send-sharedarraybuffer.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/fast/xmlhttprequest/xmlhttprequest-send-sharedarraybuffer.html
diff --git a/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-send-sharedarraybuffer.html b/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-send-sharedarraybuffer.html
new file mode 100644
index 0000000000000000000000000000000000000000..9f02118d7ce90546bc1d8c2840683b1c62f8b35d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-send-sharedarraybuffer.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+
+if (window.SharedArrayBuffer) {
+ test(() => {
+ const xhr = new XMLHttpRequest();
+ xhr.open('POST', '/foo.html');
+
+ assert_throws(null, () => {
+ xhr.send(new Uint8Array(new SharedArrayBuffer(32)));
+ }, 'send() of SharedArrayBuffer view should throw');
+ }, 'sending SharedArrayBuffer');
+}
+done();
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698