Bug 1423253 - Fix test_mr_record_addtracked_stream.html recording a video that is too short. r=padenot

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andreas Pehrson 2019-03-22 11:45:33 +00:00
Родитель 9e33da2826
Коммит f42ad37739
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -66,6 +66,10 @@ runTestWhenReady(async () => {
await haveEvent(mediaRecorder, "start", wait(5000, new Error("Timeout")));
info("onstart fired");
// The recording can be too short to cause any checks with
// waitForAnalysisSuccess(). Waiting a bit here solves this.
await wait(500);
is(mediaRecorder.state, "recording",
"Media recorder is recording before being stopped");
mediaRecorder.stop();