Index: content/test/data/media/getusermedia.html |
diff --git a/content/test/data/media/getusermedia.html b/content/test/data/media/getusermedia.html |
index e8aac18fa23ff874324853323a95a16727146d84..a74a0e2e899f718cf9ac6fdae1515b049a483ae7 100644 |
--- a/content/test/data/media/getusermedia.html |
+++ b/content/test/data/media/getusermedia.html |
@@ -1,6 +1,7 @@ |
<html> |
<head> |
<script type="text/javascript" src="webrtc_test_utilities.js"></script> |
+ <script type="text/javascript" src="depth_stream_test_utilities.js"></script> |
<script type="text/javascript"> |
$ = function(id) { |
return document.getElementById(id); |
@@ -343,6 +344,21 @@ |
} |
} |
+ // testVideoToImageBitmap is a layout test that we run here because |
+ // it requires --use-fake-device-for-media-capture. |
+ function getDepthStreamAndCallCreateImageBitmap() { |
+ console.log('Calling getDepthStreamAndCallCreateImageBitmap'); |
+ getFake16bitStream().then(function(stream) { |
+ detectVideoInLocalView1(stream, function() { |
+ testVideoToImageBitmap('local-view-1', function() { |
+ stream.getVideoTracks()[0].stop(); |
+ waitForVideoToStop('local-view-1'); |
+ }, failedCallback); |
+ }); |
+ }, |
+ failedCallback); |
+ } |
+ |
function failedCallback(error) { |
failTest('GetUserMedia call failed with error name ' + error.name); |
} |