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

Unified Diff: third_party/WebKit/LayoutTests/fast/mediacapturefromelement/HTMLMediaElementCapture-creation.html

Issue 1522463003: Refactor resource load and resource selection algorithms as per spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move preloadTypeToString to anonymous namespace Created 4 years, 9 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/mediacapturefromelement/HTMLMediaElementCapture-creation.html
diff --git a/third_party/WebKit/LayoutTests/fast/mediacapturefromelement/HTMLMediaElementCapture-creation.html b/third_party/WebKit/LayoutTests/fast/mediacapturefromelement/HTMLMediaElementCapture-creation.html
index 47718e2be63e30ecb18e0432af6d0b587b716c25..d481fc8175e9bb75a93203da28b57129c4f93aa9 100644
--- a/third_party/WebKit/LayoutTests/fast/mediacapturefromelement/HTMLMediaElementCapture-creation.html
+++ b/third_party/WebKit/LayoutTests/fast/mediacapturefromelement/HTMLMediaElementCapture-creation.html
@@ -19,22 +19,24 @@ test(function() {
test(function() {
var video = document.createElement('video');
video.src = "file:///super_duper_videos/amazing_video.webm";
- video.load();
- var stream = video.captureStream();
+ video.onloadstart = function() {
+ var stream = video.captureStream();
- assert_not_equals(stream, null);
- assert_equals(1, stream.getVideoTracks().length);
- assert_equals(0, stream.getAudioTracks().length);
+ assert_not_equals(stream, null);
+ assert_equals(1, stream.getVideoTracks().length);
+ assert_equals(0, stream.getAudioTracks().length);
+ }
}, 'check <video> captureStream().');
test(function() {
var audio = document.createElement('audio');
audio.src = "file:///super_duper_videos/amazing_audio_file.webm";
- audio.load();
- var stream = audio.captureStream();
+ audio.onloadstart = function() {
+ var stream = audio.captureStream();
- // TODO(mcasas): http://crbug.com/575492, implement <audio>.captureStream().
- assert_equals(stream, null);
+ // TODO(mcasas): http://crbug.com/575492, implement <audio>.captureStream().
+ assert_equals(stream, null);
+ };
}, 'check <audio> captureStream().');
test(function() {
@@ -52,7 +54,6 @@ test(function() {
return video.setMediaKeys(mediaKeys);
}).then(function(result) {
video.src = "../../media/content/test-encrypted.webm";
- video.load();
assert_throws("NotSupportedError",
function() { var stream = video.captureStream(); },
"Cannot create a captureStream() out of a protected <video>");

Powered by Google App Engine
This is Rietveld 408576698