accessible/tests/mochitest/tree/test_filectrl.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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