[web-platform-tests] Pull Request: Add initial test for RTCStats and RTCPeerConnection.prototype.getStats

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 RTCStats and RTCPeerConnection.prototype.getStats ==
This is work in progress. There are still a few tests and checking to be done.

This tests the `getStats()` method as well as the webrtc-stats specs. The RTCStats-helper.js file is created for validation of stats objects returned from `getStats()`.

Given the lack of tools in idlharness to test dictionaries, and to test the special ID fields in stats, I have written adhoc validation functions for each type of stats objects. The validation functions are not the prettiest code, but for testing considerations I have make it the least abstractions possible to make it easy for readers and reviewers.

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

Received on Thursday, 13 July 2017 10:19:18 UTC