dom/media/tests/mochitest/test_getUserMedia_constraints_mobile.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/media/tests/mochitest/test_getUserMedia_constraints_mobile.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=882145
     1.8 +-->
     1.9 +<head>
    1.10 +  <meta charset="utf-8">
    1.11 +  <title>Test mozGetUserMedia Constraints</title>
    1.12 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    1.13 +  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.14 +  <script type="application/javascript" src="head.js"></script>
    1.15 +  <script type="application/javascript" src="constraints.js"></script>
    1.16 +</head>
    1.17 +<body>
    1.18 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=882145">Test mozGetUserMedia Constraints (mobile)</a>
    1.19 +<p id="display"></p>
    1.20 +<div id="content" style="display: none">
    1.21 +
    1.22 +</div>
    1.23 +<pre id="test">
    1.24 +<script type="application/javascript">
    1.25 +/**
    1.26 +  See constraints.js for testConstraints() and common_tests.
    1.27 +  TODO(jib): Merge desktop and mobile version of these tests again (Bug 997365)
    1.28 +*/
    1.29 +var mobile_tests = [
    1.30 +  { message: "legacy facingMode overconstrains video (mobile)",
    1.31 +    constraints: { video: { mandatory: { facingMode:'left' } }, fake: true },
    1.32 +    error: "NO_DEVICES_FOUND" },
    1.33 +];
    1.34 +
    1.35 +runTest(function () {
    1.36 +  testConstraints(common_tests.concat(mobile_tests));
    1.37 +});
    1.38 +
    1.39 +
    1.40 +</script>
    1.41 +</pre>
    1.42 +</body>
    1.43 +</html>

mercurial