mirror of
https://github.com/servo/servo.git
synced 2025-09-01 02:28:21 +01:00
Update web-platform-tests to revision d7afcb8708eac08a614d161d5622a48172daf7e3
This commit is contained in:
parent
6f8bb4dd40
commit
edff458e23
791 changed files with 17647 additions and 10322 deletions
|
@ -4,6 +4,7 @@
|
|||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="../webrtc/RTCIceTransport-extension-helper.js"></script>
|
||||
<script src="../webrtc/RTCPeerConnection-helper.js"></script>
|
||||
<script src="RTCQuicTransport-helper.js"></script>
|
||||
<script src="../webrtc/dictionary-helper.js"></script>
|
||||
<script>
|
||||
|
@ -48,6 +49,21 @@ test(t => {
|
|||
}, 'RTCQuicTransport constructor throws if passed an RTCIceTransport that ' +
|
||||
'already has an active RTCQuicTransport.');
|
||||
|
||||
promise_test(async t => {
|
||||
const pc1 = new RTCPeerConnection();
|
||||
t.add_cleanup(() => pc1.close());
|
||||
const pc2 = new RTCPeerConnection();
|
||||
t.add_cleanup(() => pc2.close());
|
||||
|
||||
pc1.createDataChannel('test');
|
||||
await doSignalingHandshake(pc1, pc2);
|
||||
const iceTransport = pc1.sctp.transport.iceTransport;
|
||||
|
||||
assert_throws('InvalidStateError',
|
||||
() => makeQuicTransport(t, iceTransport));
|
||||
}, 'RTCQuicTransport constructor throws if passed an RTCIceTransport that ' +
|
||||
'came from an RTCPeerConnection.');
|
||||
|
||||
test(t => {
|
||||
const quicTransport = makeStandaloneQuicTransport(t);
|
||||
quicTransport.stop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue