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

Unified Diff: third_party/WebKit/LayoutTests/media/video-move-to-new-document-srcobject.html

Issue 1815033003: Add srcObject attribute of type MediaStream to HTMLMediaElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: philipj's comments Created 4 years, 8 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/media/video-move-to-new-document-srcobject.html
diff --git a/third_party/WebKit/LayoutTests/media/video-move-to-new-document.html b/third_party/WebKit/LayoutTests/media/video-move-to-new-document-srcobject.html
similarity index 89%
copy from third_party/WebKit/LayoutTests/media/video-move-to-new-document.html
copy to third_party/WebKit/LayoutTests/media/video-move-to-new-document-srcobject.html
index 139f7013c9252e850ef323e272add1fb75f073e1..9bb762fd46408fc5597f3f67ca3c5df9efa93c52 100644
--- a/third_party/WebKit/LayoutTests/media/video-move-to-new-document.html
+++ b/third_party/WebKit/LayoutTests/media/video-move-to-new-document-srcobject.html
@@ -8,7 +8,10 @@
<script>
async_test(function(t) {
var video = document.querySelector('video');
- video.src = findMediaFile("video", "content/test");
+ navigator.webkitGetUserMedia(
+ {video:true},
+ t.step_func(stream => video.srcObject = stream),
+ t.unreached_func("Did not get mediastream"));
video.onloadeddata = this.step_func(function() {
video.onloadeddata = null;
assert_true(video.networkState == video.NETWORK_IDLE || video.networkState == video.NETWORK_LOADING);

Powered by Google App Engine
This is Rietveld 408576698