| Index: third_party/WebKit/LayoutTests/http/tests/websocket/send-arraybufferview.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/send-arraybufferview.html b/third_party/WebKit/LayoutTests/http/tests/websocket/send-arraybufferview.html
|
| index b85476f8fc604b8e33ea5e5d746fd04815886449..a25a24687089fd7baf387cb9ff748de953e1c404 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/websocket/send-arraybufferview.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/websocket/send-arraybufferview.html
|
| @@ -40,6 +40,11 @@ function createArrayBufferViewContainingAllDistinctBytes()
|
| return array;
|
| }
|
|
|
| +function createSharedArrayBufferView()
|
| +{
|
| + return new Uint8Array(new SharedArrayBuffer(16));
|
| +}
|
| +
|
| var url = "ws://127.0.0.1:8880/check-binary-messages";
|
| var ws = new WebSocket(url);
|
| var closeEvent;
|
| @@ -49,6 +54,10 @@ ws.onopen = function()
|
| ws.send(createArrayBufferViewContainingHelloWorld());
|
| ws.send(createEmptyArrayBufferView());
|
| ws.send(createArrayBufferViewContainingAllDistinctBytes());
|
| +
|
| + if (window.SharedArrayBuffer) {
|
| + shouldThrow("ws.send(createSharedArrayBufferView())");
|
| + }
|
| };
|
|
|
| ws.onmessage = function(event)
|
|
|