|
1 <!DOCTYPE html> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=483573 |
|
5 --> |
|
6 <head> |
|
7 <title>File Input Control tests</title> |
|
8 <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" /> |
|
9 |
|
10 <script type="application/javascript" |
|
11 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
|
12 |
|
13 <script type="application/javascript" |
|
14 src="../common.js"></script> |
|
15 <script type="application/javascript" |
|
16 src="../role.js"></script> |
|
17 |
|
18 <script type="application/javascript"> |
|
19 function doTest() |
|
20 { |
|
21 var accTree = { |
|
22 role: ROLE_TEXT_CONTAINER, |
|
23 children: [ |
|
24 { |
|
25 role: ROLE_PUSHBUTTON |
|
26 }, |
|
27 { |
|
28 role: ROLE_LABEL, |
|
29 children: [ |
|
30 { |
|
31 role: ROLE_TEXT_LEAF, |
|
32 } |
|
33 ], |
|
34 }, |
|
35 ] |
|
36 }; |
|
37 testAccessibleTree("filectrl", accTree); |
|
38 |
|
39 SimpleTest.finish(); |
|
40 } |
|
41 |
|
42 SimpleTest.waitForExplicitFinish(); |
|
43 addA11yLoadEvent(doTest); |
|
44 </script> |
|
45 </head> |
|
46 <body> |
|
47 |
|
48 <a target="_blank" |
|
49 title="Expose HTML5 video and audio elements' embedded controls through accessibility APIs" |
|
50 href="https://bugzilla.mozilla.org/show_bug.cgi?id=483573">Mozilla Bug 483573</a> |
|
51 <p id="display"></p> |
|
52 <div id="content" style="display: none"></div> |
|
53 <pre id="test"> |
|
54 </pre> |
|
55 |
|
56 <input type="file" id="filectrl" /> |
|
57 </body> |
|
58 </html> |