Bug 1407650 - Avoid test_mr_record_changing_video_resolution.html by delaying stop(). r=jib

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andreas Pehrson 2019-01-31 04:18:02 +00:00
Родитель ed89310149
Коммит ce0e20a4ee
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -144,7 +144,11 @@ function startTest() {
previous_time = timestamp;
if (countFrames == resolution_change.length) {
mediaRecorder.stop();
// There's a race between this stop() and feeding the last frame to the
// recorder, see bug 1407650. We wait a bit with the stop() as a stop-gap
// measure.
SimpleTest.requestFlakyTimeout("Fixes intermittent bug 1407650");
new Promise(r => setTimeout(r, 1000)).then(() => mediaRecorder.stop());
return;
}