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); |