Update web-platform-tests to revision e529eb9501876273c9612f5602bc530723a01147

This commit is contained in:
WPT Sync Bot 2020-05-29 08:21:43 +00:00
parent d7d56454b0
commit 4702cbe05c
113 changed files with 2705 additions and 1008 deletions

View file

@ -5,13 +5,17 @@
<script src="/resources/testharnessreport.js"></script>
<script src="RTCPeerConnection-helper.js"></script>
<script>
promise_test(async t => {
for (const options of [{}, {negotiated: true, id: 0}]) {
const mode = `${options.negotiated? "Negotiated d" : "D"}atachannel`;
promise_test(async t => {
const data1 = new Blob(['blob']);
const data1Size = data1.size;
const data2 = new ArrayBuffer(8);
const data2Size = data2.byteLength;
const [channel1, channel2] = await createDataChannelPair();
const [channel1, channel2] = await createDataChannelPair(t, options);
channel2.binaryType = "arraybuffer";
channel1.send(data1);
@ -22,5 +26,6 @@ promise_test(async t => {
e = await new Promise(r => channel2.onmessage = r);
assert_equals(e.data.byteLength, data2Size);
}, 'Data channel should send data following the order of the send call');
}, `${mode} should send data following the order of the send call`);
}
</script>