OLD | NEW |
(Empty) | |
| 1 Tests RTCDataChannel. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 PASS dc = pc.createDataChannel("label1"); did not throw exception. |
| 7 PASS dc.reliable is true |
| 8 PASS dc = pc.createDataChannel("label2", {}); did not throw exception. |
| 9 PASS dc.reliable is true |
| 10 PASS dc = pc.createDataChannel("label3", {ordered:true}); did not throw exceptio
n. |
| 11 PASS dc.reliable is true |
| 12 PASS dc = pc.createDataChannel("label3", {ordered:false}); did not throw excepti
on. |
| 13 PASS dc.reliable is false |
| 14 PASS dc = pc.createDataChannel("label3", {maxRetransmits:0}); did not throw exce
ption. |
| 15 PASS dc.reliable is false |
| 16 PASS dc = pc.createDataChannel("label3", {maxRetransmitTime:0}); did not throw e
xception. |
| 17 PASS dc.reliable is false |
| 18 PASS pc is connected |
| 19 PASS dc = pc.createDataChannel("label"); did not throw exception. |
| 20 PASS dc.readyState is 'connecting' |
| 21 PASS pc_ondatachannel was called |
| 22 PASS dc_onopen was called |
| 23 PASS dc.readyState is 'open' |
| 24 PASS dc.label is 'label' |
| 25 PASS dc.send('xyzzy'); did not throw exception. |
| 26 PASS dc_onmessage_string was called |
| 27 PASS data is 'xyzzy' |
| 28 PASS dc.send(buffer); did not throw exception. |
| 29 PASS dc_onmessage_arraybuffer was called |
| 30 PASS data.byteLength is 2 |
| 31 PASS array[0] is 17 |
| 32 PASS array[1] is 19 |
| 33 PASS data.byteLength is 12 |
| 34 PASS dc.send(shrunkView); did not throw exception. |
| 35 PASS dc_onmessage_dataview was called |
| 36 PASS data.byteLength is 10 |
| 37 PASS array[0] is 1 |
| 38 PASS array[9] is 10 |
| 39 PASS dc.send(new Uint8Array(new SharedArrayBuffer(16))); threw exception TypeErr
or: Failed to execute 'send' on 'RTCDataChannel': The provided ArrayBufferView v
alue must not be shared.. |
| 40 PASS dc_onclose was called |
| 41 PASS dc.readyState is 'closed' |
| 42 PASS successfullyParsed is true |
| 43 |
| 44 TEST COMPLETE |
| 45 |
OLD | NEW |