Index: third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-datachannel.html |
diff --git a/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-datachannel.html b/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-datachannel.html |
index 21e7dc602725f9fc3b1d8748114e6c073499a167..260f377c5e704a06923c532bf3ab220adcd06100 100644 |
--- a/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-datachannel.html |
+++ b/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-datachannel.html |
@@ -19,6 +19,15 @@ function dc_onclose() { |
finishJSTest(); |
} |
+function dc_onmessage_sharedarraybuffer_view() { |
+ if (window.SharedArrayBuffer) { |
+ shouldThrow("dc.send(new Uint8Array(new SharedArrayBuffer(16)));"); |
+ } |
+ |
+ dc.onclose = dc_onclose; |
+ dc.close(); |
+} |
+ |
function dc_onmessage_dataview(e) { |
testPassed("dc_onmessage_dataview was called"); |
data = e.data; |
@@ -27,8 +36,7 @@ function dc_onmessage_dataview(e) { |
shouldBe("array[0]", "1"); |
shouldBe("array[9]", "10"); |
- dc.onclose = dc_onclose; |
- dc.close(); |
+ dc_onmessage_sharedarraybuffer_view(); |
} |
function dc_onmessage_arraybuffer(e) { |