mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 07:47:32 +09:00
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:
parent
f615587ab7
commit
763cdb00cb
9 changed files with 24 additions and 37 deletions
|
|
@ -27,8 +27,7 @@
|
|||
function testSetLocalDescriptionError() {
|
||||
var pc = new RTCPeerConnection();
|
||||
info ("Testing setLocalDescription error");
|
||||
return pc.setLocalDescription(new RTCSessionDescription({ sdp: "Picklechips!",
|
||||
type: "offer" }))
|
||||
return pc.setLocalDescription({ sdp: "Picklechips!", type: "offer" })
|
||||
.then(generateErrorCallback("setLocalDescription with nonsense SDP should fail"),
|
||||
validateReason);
|
||||
};
|
||||
|
|
@ -36,8 +35,7 @@
|
|||
function testSetRemoteDescriptionError() {
|
||||
var pc = new RTCPeerConnection();
|
||||
info ("Testing setRemoteDescription error");
|
||||
return pc.setRemoteDescription(new RTCSessionDescription({ sdp: "Who?",
|
||||
type: "offer" }))
|
||||
return pc.setRemoteDescription({ sdp: "Who?", type: "offer" })
|
||||
.then(generateErrorCallback("setRemoteDescription with nonsense SDP should fail"),
|
||||
validateReason);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue