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

Unified Diff: LayoutTests/fast/mediarecorder/MediaRecorder-basic-video.html

Issue 1319473016: MediaRecorder: disabling LayoutTests in preparation of Cr CLs and a minor update (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Marking MR layout tests as Skip Created 5 years, 3 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/mediarecorder/MediaRecorder-canRecordMimeType.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/mediarecorder/MediaRecorder-basic-video.html
diff --git a/LayoutTests/fast/mediarecorder/MediaRecorder-basic-video.html b/LayoutTests/fast/mediarecorder/MediaRecorder-basic-video.html
index 40e9bb57c2055332cd434882a95d23bbbdf2d16b..7866b1a63c4be08c408ee938d5e302747332d04e 100644
--- a/LayoutTests/fast/mediarecorder/MediaRecorder-basic-video.html
+++ b/LayoutTests/fast/mediarecorder/MediaRecorder-basic-video.html
@@ -7,7 +7,7 @@ var test = async_test('checks the video-only MediaRecorder API.');
recorderOnDataAvailable = test.step_func(function(event) {
assert_greater_than(event.data.size, 0, 'Recorded data size should be > 0');
- assert_eq(recorder.state, "recording");
+ assert_equals(recorder.state, "recording");
// TODO(mcasas): Let the test record for a while.
// TODO(mcasas): Consider storing the recorded data and playing it back.
@@ -23,6 +23,7 @@ gotStream = test.step_func(function(s) {
stream = s;
assert_equals(stream.getAudioTracks().length, 0);
assert_equals(stream.getVideoTracks().length, 1);
+ assert_equals(stream.getVideoTracks()[0].readyState, 'live');
try {
recorder = new MediaRecorder(stream);
@@ -30,10 +31,13 @@ gotStream = test.step_func(function(s) {
assert_unreached('Exception while creating MediaRecorder: ' + e);
}
- assert_eq(recorder.state, "inactive");
+ assert_equals(recorder.state, "inactive");
recorder.ondataavailable = recorderOnDataAvailable;
recorder.onstop = recorderOnStop;
recorder.start();
+
+ assert_equals(recorder.state, "recording");
+ test.done();
});
onError = test.step_func(function() {
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/mediarecorder/MediaRecorder-canRecordMimeType.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698