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

Unified Diff: third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-datachannel.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/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) {

Powered by Google App Engine
This is Rietveld 408576698