Upstream version 5.34.92.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / test / w3c / getusermedia_conformance_test.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <!--
3 Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
4
5 Use of this source code is governed by a BSD-style license
6 that can be found in the LICENSE file in the root of the source
7 tree. An additional intellectual property rights grant can be found
8 in the file PATENTS.  All contributing project authors may
9 be found in the AUTHORS file in the root of the source tree.
10 -->
11 <html>
12 <head>
13   <title>getUserMedia Browser Conformance Test</title>
14   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
15   <meta charset="utf-8">
16 </head>
17
18 <!--
19 To quickly iterate when developing this test, make sure you select
20 'Always allow this site to use this webcam' option in the dropdown menu of
21 Chrome when it's requesting access to your webcam.
22 Notice that this requires the site you're browsing to use HTTPS.
23 -->
24
25 <body>
26   <h1>Conformance test for the Media Capture and Streams API</h1>
27   <p>This page contains a foundation of conformance tests that can be expanded
28   to cover most things in the W3C specification of the Media Capture and Streams
29   API.</p>
30   <p>VERSION: These tests are based on the W3C Editor's Draft of August 24th,
31   2013
32   (<a href="http://dev.w3.org/2011/webrtc/editor/archives/20130824/getusermedia.html">http://dev.w3.org/2011/webrtc/editor/archives/20130824/getusermedia.html</a>)
33   <p>STATUS: In its current state, it only performs simple checks on the various
34   attributes and methods of the objects exposed by the API. There's not much
35   functionality tested so far. The spec doesn't define if an attribute shall be
36   owned by the object itself (<code>assert_own_propety</code>) or if it shall be
37   inherited (<code>assert_inherits</code>). Since testharness.js doesn't offer
38   any generic function that covers both, the method for verification is
39   currently chosen according to the current Chrome implementation.</p>
40   <p>PREFIXES: These tests currently utilizes the <code>adapter.js</code>
41   script, which handle the prefixes used by different browsers.</p>
42   <p>HOW TO RUN: The easiest way is to tell your browser to:
43   <ul>
44   <li>Provide a fake webcam (<code>--use-fake-ui-for-media-stream</code> in
45   Chrome)</li>
46   <li>Automatically allow access to the webcam
47   (<code>--use-fake-device-for-media-stream</code> in Chrome)</li>
48   <li>Allow loading HTML files from disk
49   (<code>--allow-file-access-from-files</code> in Chrome)</li>
50   </ul>
51   Then just load this HTML file to execute the tests.</p>
52
53   <div id="log"></div>
54   <video width="320" height="240" id="local-view" autoplay="autoplay"
55       muted="true"></video>
56
57   <script src="https://w3c-test.org/resources/testharness.js"></script>
58   <!-- Load the polyfill to switch-hit between Chrome and Firefox -->
59   <script src="https://webrtc.googlecode.com/svn/stable/webrtc/test/manual/adapter.js"></script>
60
61   <script src="getusermedia_conformance_test.js"></script>
62 </body>
63 </html>