Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[WebRTC] RTCIceTransport.html : dependency on SctpTransport #9111
The purpose of https://github.com/w3c/web-platform-tests/blob/master/webrtc/RTCIceTransport.html is to test the RTCIceTransport interface. However, because it depends upon support for the RTCSctpTransport interface, on a browser that does not support RTCSctpTransport, but does support RTCIceTransport, the tests will fail, regardless of how the RTCIceTransport interface is implemented.
A better design would be to first test for support of the RTCIceTransport object, and then if it is supported, test for support of other objects (e.g. DtlsTransport, RtpSender, RtpReceiver, SctpTransport). Based on these results, an IceTransport could be obtained so to allow other tests to be run. For example, on a browser that supports IceTransport, DtlsTransport and RtpReceiver, receiver.transport.transport could be used to obtain access to an IceTransport.