Skip to content

Commit

Permalink
Fix currentDirection in RTCRtpTransceiver-direction.html
Browse files Browse the repository at this point in the history
  • Loading branch information
markandrus committed Nov 5, 2018
1 parent f15119c commit 683054c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webrtc/RTCRtpTransceiver-direction.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@
.then(() => generateAnswer(offer)))
.then(answer => pc.setRemoteDescription(answer))
.then(() => {
assert_equals(transceiver.currentDirection, 'recvonly');
assert_equals(transceiver.currentDirection, 'inactive');
transceiver.direction = 'sendrecv';
assert_equals(transceiver.direction, 'sendrecv');
assert_equals(transceiver.currentDirection, 'recvonly');
assert_equals(transceiver.currentDirection, 'inactive');
});
}, 'setting direction should change transceiver.direction independent of transceiver.currentDirection');

Expand Down

0 comments on commit 683054c

Please sign in to comment.