Index: third_party/WebKit/LayoutTests/fast/mediacapturefromelement/HTMLMediaElementCapture-capture.html |
diff --git a/third_party/WebKit/LayoutTests/fast/mediacapturefromelement/HTMLMediaElementCapture-capture.html b/third_party/WebKit/LayoutTests/fast/mediacapturefromelement/HTMLMediaElementCapture-capture.html |
index 420e3959309daaa64ecc43883bf7c8f59c4d7032..65d9d5cd580ecfa9709bede93f89b70e88c9f137 100644 |
--- a/third_party/WebKit/LayoutTests/fast/mediacapturefromelement/HTMLMediaElementCapture-capture.html |
+++ b/third_party/WebKit/LayoutTests/fast/mediacapturefromelement/HTMLMediaElementCapture-capture.html |
@@ -10,21 +10,19 @@ var makeAsyncTest = function(filename) { |
var video = document.createElement('video'); |
video.src = "../../http/tests/media/resources/media-source/webm/" + filename; |
video.onerror = this.unreached_func("<video> error"); |
+ video.play(); |
- video.onloadedmetadata = this.step_func(function() { |
- var stream = video.captureStream(); |
+ var stream = video.captureStream(); |
+ |
+ // onactive event is marked for deprecation (https://crbug.com/649328) |
+ stream.onactive = this.step_func_done(function() { |
var recorder = new MediaRecorder(stream); |
recorder.ondataavailable = test.step_func_done(function(event) { |
assert_true(event.data.size > 0, 'Recorded data size should be > 0'); |
}); |
- |
recorder.start(0); |
- video.play(); |
- |
}); |
- |
- video.load(); |
- }), "<video>.captureStream() and assert data flows."; |
+ }), "<video>.captureStream() and assert data flows."; |
}; |
generate_tests(makeAsyncTest, [ |