mirror of
https://github.com/servo/servo.git
synced 2025-08-29 09:08:20 +01:00
Update web-platform-tests to revision 70fdd27f4cecb8a5cae3dafa76ba05265531c9e2
This commit is contained in:
parent
e5689df6b4
commit
bea56037ef
701 changed files with 13864 additions and 1909 deletions
|
@ -371,4 +371,30 @@ promise_test(async t => {
|
|||
assert_array_equals(pc2.iceStates, ['new', 'checking', 'connected']);
|
||||
}, 'Responder ICE connection state behaves as expected');
|
||||
|
||||
/*
|
||||
Test case for step 11 of PeerConnection.close().
|
||||
...
|
||||
11. Set connection's ICE connection state to "closed". This does not invoke
|
||||
the "update the ICE connection state" procedure, and does not fire any
|
||||
event.
|
||||
...
|
||||
*/
|
||||
promise_test(async t => {
|
||||
const pc1 = new RTCPeerConnection();
|
||||
t.add_cleanup(() => pc1.close());
|
||||
const pc2 = new RTCPeerConnection();
|
||||
const stream = await getNoiseStream({ audio: true });
|
||||
t.add_cleanup(() => stream.getTracks().forEach(track => track.stop()));
|
||||
|
||||
stream.getTracks().forEach(track => pc1.addTrack(track, stream));
|
||||
exchangeIceCandidates(pc1, pc2);
|
||||
doSignalingHandshake(pc1, pc2);
|
||||
await listenToIceConnected(pc2);
|
||||
|
||||
pc2.oniceconnectionstatechange = t.unreached_func();
|
||||
pc2.close();
|
||||
await Promise.resolve();
|
||||
assert_true(pc2.iceConnectionState === 'closed');
|
||||
}, 'Closing a PeerConnection should not fire iceconnectionstatechange event');
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue