mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'
This commit is contained in:
parent
4401622eb1
commit
b77ad115f6
16832 changed files with 270819 additions and 87621 deletions
|
@ -51,8 +51,8 @@ async function exchangeOfferAnswerEndOnSecond(pc1, pc2, negotiator) {
|
|||
await pc2.setLocalDescription(pc1.remoteDescription); // End on pc2. No race
|
||||
}
|
||||
|
||||
async function assertNoNegotiationNeeded(t, pc) {
|
||||
assert_equals(pc.signalingState, "stable", "In stable state");
|
||||
async function assertNoNegotiationNeeded(t, pc, state = "stable") {
|
||||
assert_equals(pc.signalingState, state, `In ${state} state`);
|
||||
const event = await Promise.race([
|
||||
new Promise(r => pc.onnegotiationneeded = r),
|
||||
new Promise(r => t.step_timeout(r, 10))
|
||||
|
@ -73,6 +73,13 @@ function assert_ufrags_not_equals(x, y, description) {
|
|||
assert_false(x === y, description);
|
||||
}
|
||||
|
||||
promise_test(async t => {
|
||||
const pc = new RTCPeerConnection();
|
||||
pc.close();
|
||||
pc.restartIce();
|
||||
await assertNoNegotiationNeeded(t, pc, "closed");
|
||||
}, "restartIce() has no effect on a closed peer connection");
|
||||
|
||||
promise_test(async t => {
|
||||
const pc1 = new RTCPeerConnection();
|
||||
const pc2 = new RTCPeerConnection();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue