Bug 1304950 - Reduce timeslice to avoid races with the source ending. r=jwwang

Media element capture pushes data to MSG ahead of currentTime which together
with the direct listeners that we use in MediaRecorder we end up finishing
the recording in less than the 250ms that this test uses as the recording
timeslice.

Lowering the timeslice here seems to fix this. I'm using 1 here since it's the
minimum valid number.

MozReview-Commit-ID: KAlRoHWHPSV

--HG--
extra : rebase_source : cc2af7829dca734b0411383a6b92dd0691533411
This commit is contained in:
Andreas Pehrson 2016-10-12 16:02:56 +02:00
parent 05686d2182
commit adb5ba763c

View File

@ -89,7 +89,7 @@ function startTest(test, token) {
}
};
mediaRecorder.start(250);
mediaRecorder.start(1);
element.play();
is(mediaRecorder.state, 'recording', 'Media recorder should be recording');
is(mediaRecorder.stream, stream,