| 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..3b4ec5a707a7ad2bfed8a3e292a3a6510080e3f9
|
| --- /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.internals && internals.runtimeFlags.sharedArrayBufferEnabled) {
|
| + 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>
|
|
|