Bug 1735858 [wpt PR 31247] - App history: make it mostly nonfunctional for opaque...
[gecko.git] / testing / web-platform / tests / mediacapture-streams / GUM-api.https.html
blob148317017692e935a936eb007ed90fd9ceb29825
1 <!doctype html>
2 <html>
3 <head>
4 <title>getUserMedia: test that getUserMedia is present</title>
5 <link rel="author" title="Dominique Hazael-Massieux" href="mailto:dom@w3.org"/>
6 <link rel="help" href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html#navigatorusermedia">
7 <meta name='assert' content='Check that the getUserMedia() method is present.'/>
8 </head>
9 <body>
10 <h1 class="instructions">Description</h1>
11 <p class="instructions">This test checks for the presence of the
12 <code>navigator.mediaDevices.getUserMedia</code> method.</p>
13 <div id='log'></div>
14 <script src=/resources/testharness.js></script>
15 <script src=/resources/testharnessreport.js></script>
16 <script>
17 test(function () {
18 assert_true(undefined !== navigator.mediaDevices && undefined !== navigator.mediaDevices.getUserMedia, "navigator.mediaDevices.getUserMedia exists");
19 }, "mediaDevices.getUserMedia() is present on navigator");
20 </script>
21 </body>
22 </html>