blob: a204764ae873d557343ce286e60879af4c05759b [file] [log] [blame]
Zhiqiang Zhang5d797b82013-08-24 17:06:071<!DOCTYPE html>
2<html>
3 <head>
4 <meta charset='utf-8'>
5 <title>HTML Media Capture IDL tests</title>
6 <link rel='author' title='Intel' href='http://www.intel.com/'>
7 <link rel='help' href='http://www.w3.org/TR/html-media-capture/#conformance'>
8 <link rel='help' href='http://www.w3.org/TR/html-media-capture/#the-capture-attribute'>
9 <script src='/resources/testharness.js'></script>
10 <script src='/resources/testharnessreport.js'></script>
11 <script src='/resources/WebIDLParser.js'></script>
12 <script src='/resources/idlharness.js'></script>
13 </head>
14 <body>
15 <h1>HTML Media Capture IDL tests</h1>
16 <div id='log'></div>
17
18 <pre id='untested_idl' style='display:none'>
19 interface HTMLInputElement {
20 };
21 interface HTMLElement {
22 };
23 interface Element{
24 };
25 </pre>
26
27 <pre id='idl' style='display:none'>
28 partial interface HTMLInputElement {
29 attribute boolean capture;
30 };
31 </pre>
32
33 <form style='display:none'>
34 <input id='testElement' type='file' accept='image/*' capture>
35 </form>
36
37 <script>
38 (function() {
39 var idl_array = new IdlArray();
40
41 idl_array.add_untested_idls(document.getElementById('untested_idl').textContent);
42 idl_array.add_idls(document.getElementById('idl').textContent);
43
44 var testElement = document.getElementById('testElement');
45 idl_array.add_objects({HTMLInputElement: [testElement]});
46 idl_array.test();
47 })();
48 </script>
49 </body>
50</html>