Issue #2332 - Update most tests to skip RTCSessionDescription construction

Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1263312 part 6
This commit is contained in:
Basilisk-Dev 2023-10-09 17:09:04 -04:00 committed by roytam1
commit 763cdb00cb
9 changed files with 24 additions and 37 deletions

View file

@ -20,10 +20,8 @@
function PC_REMOTE_ROLLBACK(test) {
// We still haven't negotiated the tracks
test.pcRemote.expectNegotiationNeeded();
return test.setRemoteDescription(
test.pcRemote,
new RTCSessionDescription({ type: "rollback" }),
STABLE)
return test.setRemoteDescription(test.pcRemote, { type: "rollback" },
STABLE)
.then(() => test.pcRemote.rollbackRemoteTracksIfNotNegotiated());
},