[web-platform-tests] Pull Request: Add initial test for get/set RTCRtpParameters

wpt-pr-bot has just labeled a pull request from soareschen for https://github.com/w3c/web-platform-tests as "wg-webrtc":

== Add initial test for get/set RTCRtpParameters ==
This adds tests for `get`/`setParameters()` methods on `RTCRtpSender` and `RTCRtpReceiver`.

Helper functions has been added to help testing the dictionary objects returned from `getParameters()`. The helper functions are almost identical to the ones in #6539, which I will refactor out later on.

There is also some minor modifications on transceiver tests to properly assert the existence of the `addTransceiver()` function in the prototype chain.

The majority of the tests is on modifying the individual fields in `RTCRtpParameters` and check whether they fail or succeed as specified by the specs. The modification tests are non-exhaustive, but there are enough of them that I feel need to add more only in future PRs.

As the specs currently do not require any field to be set, the tests have to take into account undefined fields during modification and result in more verbose code written. I have raised this issue in w3c/webrtc-pc#1493 and seek clarification if any field is required.

See https://github.com/w3c/web-platform-tests/pull/6572

Received on Tuesday, 18 July 2017 09:49:00 UTC