accessible/tests/mochitest/tree/test_filectrl.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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" />
    10   <script type="application/javascript"
    11           src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    13   <script type="application/javascript"
    14           src="../common.js"></script>
    15   <script type="application/javascript"
    16           src="../role.js"></script>
    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);
    39       SimpleTest.finish();
    40     }
    42     SimpleTest.waitForExplicitFinish();
    43     addA11yLoadEvent(doTest);
    44   </script>
    45 </head>
    46 <body>
    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>
    56   <input type="file" id="filectrl" />
    57 </body>
    58 </html>

mercurial