Skip to content

Commit

Permalink
Added wpt test to ensure no gathering state change.
Browse files Browse the repository at this point in the history
Depends on D93310

Differential Revision: https://phabricator.services.mozilla.com/D94123

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1670856
gecko-commit: 9e4bc6105c62b6ee012e52ba2720d55ea11cf764
gecko-reviewers: bwc
  • Loading branch information
Nils Ohlmeier [:drno] authored and moz-wptsync-bot committed Oct 22, 2020
1 parent d29ca3f commit 3dbd045
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions webrtc/RTCPeerConnection-iceGatheringState.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,17 @@
await new Promise(r => t.step_timeout(r, 500));
}, 'setLocalDescription(reoffer) with no new transports should not cause iceGatheringState to change');

promise_test(async t => {
const pc1 = new RTCPeerConnection();
t.add_cleanup(() => pc1.close());

expectNoMoreGatheringStateChanges(t, pc1);

await pc1.setLocalDescription(await pc1.createOffer());

await new Promise(r => t.step_timeout(r, 500));
}, 'setLocalDescription() with no transports should not cause iceGatheringState to change');

promise_test(async t => {
const pc1 = new RTCPeerConnection();
t.add_cleanup(() => pc1.close());
Expand Down

0 comments on commit 3dbd045

Please sign in to comment.