test_filectrl.html (1247B)
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 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 11 12 <script type="application/javascript" 13 src="../common.js"></script> 14 <script type="application/javascript" 15 src="../role.js"></script> 16 17 <script type="application/javascript"> 18 function doTest() { 19 var accTree = { 20 role: ROLE_PUSHBUTTON, 21 children: [ 22 { role: ROLE_TEXT_LEAF }, 23 { role: ROLE_TEXT_LEAF }, 24 ], 25 }; 26 testAccessibleTree("filectrl", accTree); 27 28 SimpleTest.finish(); 29 } 30 31 SimpleTest.waitForExplicitFinish(); 32 addA11yLoadEvent(doTest); 33 </script> 34 </head> 35 <body> 36 37 <a target="_blank" 38 title="Expose HTML5 video and audio elements' embedded controls through accessibility APIs" 39 href="https://bugzilla.mozilla.org/show_bug.cgi?id=483573">Mozilla Bug 483573</a> 40 <p id="display"></p> 41 <div id="content" style="display: none"></div> 42 <pre id="test"> 43 </pre> 44 45 <input type="file" id="filectrl" /> 46 </body> 47 </html>