Skip to content

Commit

Permalink
Bug 1864812 [wpt PR 43166] - Add tests for w3c/webrtc-pc#2691, a=test…
Browse files Browse the repository at this point in the history
…only

Automatic update from web-platform-tests
Add tests for w3c/webrtc-pc#2691 (#43166)

* Add tests for w3c/webrtc-pc#2691

https://github.com/web-platform-tests/wpt/blob/8347f5b483e3b713443d06638d3662457107b3b0/webrtc/RTCConfiguration-bundlePolicy.html#L67 already tests it for bundlePolicy
https://github.com/web-platform-tests/wpt/blob/8347f5b483e3b713443d06638d3662457107b3b0/webrtc/RTCConfiguration-iceTransportPolicy.html#L84C5-L84C68 tests it for iceTransportPolicy
This adds the relevant test for rtcpMuxPolicy

* Fix lint
--

wpt-commits: ae97638a3c85516ecfa82141e47c52ca2629eecf
wpt-pr: 43166
  • Loading branch information
dontcallmedom authored and moz-wptsync-bot committed Nov 22, 2023
1 parent 02f558a commit 4128659
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@

}, `setConfiguration({ rtcpMuxPolicy: 'require' }) with initial rtcpMuxPolicy negotiate should throw InvalidModificationError`);

test(() => {
let pc;
pc = new RTCPeerConnection({ rtcpMuxPolicy: 'require' });
// default rtcpMuxPolicy is 'require', so this is allowed
pc.setConfiguration({});
assert_equals(pc.getConfiguration().rtcpMuxPolicy, 'require');
}, `setConfiguration({}) with initial rtcpMuxPolicy require should leave rtcpMuxPolicy to require`);

test(() => {
let pc;
try {
Expand Down

0 comments on commit 4128659

Please sign in to comment.