Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Unified Diff: third_party/WebKit/LayoutTests/fast/mediarecorder/MediaRecorder-audio-video.html

Issue 2610163006: MediaRecorder: support |timecode| and remove |m_ignoreMutedMedia|. (Closed)
Patch Set: Rebase video_capture_device_client.cc Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/mediarecorder/MediaRecorder-audio-video.html
diff --git a/third_party/WebKit/LayoutTests/fast/mediarecorder/MediaRecorder-audio-video.html b/third_party/WebKit/LayoutTests/fast/mediarecorder/MediaRecorder-audio-video.html
index bf2bc7019bbdfe47a83a93031dc5df27504e27a4..de3515d108e1c2a062de76fd46bfe87a02394171 100644
--- a/third_party/WebKit/LayoutTests/fast/mediarecorder/MediaRecorder-audio-video.html
+++ b/third_party/WebKit/LayoutTests/fast/mediarecorder/MediaRecorder-audio-video.html
@@ -26,9 +26,15 @@ var makeAsyncTest = function(value, expected) {
var recorder;
async_test(function(test) {
+ var lastTimestamp = NaN;
const recorderOnDataAvailable = this.step_func(function(event) {
// TODO(mcasas): Let the test record for a while.
// TODO(mcasas): Consider storing recorded data and playing it back.
+ if (!isNaN(lastTimestamp)) {
+ assert_greater_than(event.timecode, lastTimestamp,
+ "timecode must be increasing");
+ }
+ lastTimestamp = event.timecode;
if (recorder.state == "recording") {
recorder.onstop = recorderOnStopExpected;

Powered by Google App Engine
This is Rietveld 408576698