gecko-dev/testing/web-platform/meta/mediacapture-record
Andreas Pehrson 9835634604 Bug 1582407 - Fix MediaRecorder-pause-resume.html to avoid start() ambiguities. r=jib
The spec allows for MediaRecorder.start() to hold the "start" event until it
has collected some actual data. This means "pause" and "resume" events can occur
before "start", on the contrary of this testcase.

This patch avoids this ambiguity by:
1) Drawing a frame to the canvas so that the track contains some real data.
2) Wait for "start" before pause()ing, to ensure "start" comes first.

Note that without 1), 2) could wait indefinitely, resulting in a timeout.

Differential Revision: https://phabricator.services.mozilla.com/D46470

--HG--
extra : moz-landing-system : lando
2019-10-03 22:11:07 +00:00
..
BlobEvent-constructor.html.ini
MediaRecorder-detached-context.html.ini
__dir__.ini Bug 1528031 - Require [SecureContext] for navigator.mediaDevices & navigator.mozGetUserMedia(). r=pehrsons,smaug 2019-07-05 21:21:25 +00:00
idlharness.window.js.ini Bug 1582408 - Fix MediaRecorderErrorEvent boilerplate in idlharness.window.js. r=jib 2019-10-03 22:11:00 +00:00