Index: content/test/data/media/getusermedia-depth-capture.html |
diff --git a/content/test/data/media/getusermedia-depth-capture.html b/content/test/data/media/getusermedia-depth-capture.html |
index 0dc5953c89482a28530627ed5948a760c1bbfef4..0917030bab88d7a4ddd7c64497b73c9fb4640eb2 100644 |
--- a/content/test/data/media/getusermedia-depth-capture.html |
+++ b/content/test/data/media/getusermedia-depth-capture.html |
@@ -36,6 +36,23 @@ |
failedCallback); |
} |
+ function getDepthStreamAndCameraCalibration() { |
+ console.log('Calling getDepthStreamAndCameraCalibration'); |
+ getFake16bitStream().then(function(stream) { |
+ var depth_track = stream.getVideoTracks()[0]; |
+ if (!depth_track) |
+ return failTest("No depth_track"); |
+ var settings = depth_track.getSettings(); |
+ if (settings && settings.depthNear == 0 && settings.depthFar == 65.535 && |
+ settings.focalLengthX == 135.0 && settings.focalLengthY == 135.6) { |
+ reportTestSuccess(); |
+ } else { |
+ failTest("Unexpected depth_track settings:" + JSON.stringify(settings)); |
+ } |
+ }, |
+ failedCallback); |
+ } |
+ |
function depthStreamToRGBAUint8Texture() { |
console.log('Calling depthStreamToRGBAUint8Texture'); |
getFake16bitStream().then(function(stream) { |