[web-platform-tests] Pull Request: More WPT tests for setRemoteDescription for removing tracks.

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

== More WPT tests for setRemoteDescription for removing tracks. ==
Added expectCalled() utility function, which is used to wrap event and
promise callbacks that expect to be called. If they're not called within
|timeout| ms, an assertion fails the test. This has benefit over letting
the content_shell timeout because:
- It allows quick timeouts, tests that use this run fast even if they
  time out.
- It produces a FAIL-line and does not timeout the entire file. We can
  expect (-expected.txt) a particular test to fail without skipping the
  entire file, losing test coverage for nearby tests.
- The FAIL-line provides a description with what timed out, on a
  per-event basis.

RTCPeerConnection-setRemoteDescription-tracks.https.html updated to use
expectCalled().

Added test coverage for removing a track:
- stream.onremovetrack should fire and the track removed from stream.
- track.onmute should fire and the track be muted.

Bug: 774303, 776040
Change-Id: I1ee56e99d7abbea25d11dccfef54d8fb89b78039

Reviewed-on: https://chromium-review.googlesource.com/729149
WPT-Export-Revision: b43f3daf4687cb34a6d884f45ed65cfc9a65d36f

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

Received on Friday, 20 October 2017 00:18:32 UTC