accessible/tests/mochitest/table/test_sels_tree.xul

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 <?xml version="1.0"?>
     2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
     4                  type="text/css"?>
     6 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     7         title="Accessible Table selection tests">
     9   <script type="application/javascript"
    10           src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
    12   <script type="application/javascript"
    13           src="../treeview.js" />
    15   <script type="application/javascript"
    16           src="../common.js" />
    17   <script type="application/javascript"
    18           src="../events.js" />
    19   <script type="application/javascript"
    20           src="../role.js" />
    21   <script type="application/javascript"
    22           src="../states.js" />
    23   <script type="application/javascript"
    24           src="../table.js" />
    26   <script type="application/javascript">
    27   <![CDATA[
    28     ////////////////////////////////////////////////////////////////////////////
    29     // Test
    31     // gA11yEventDumpID = "debug";
    33     function doTest()
    34     {
    35       var cellsArray =
    36       [
    37         [false, false],
    38         [false, false],
    39         [false, false]
    40       ];
    42       testTableSelection("tree", cellsArray);
    43       testSelectTableRow("tree", 0, cellsArray);
    44       testUnselectTableRow("tree", 0, cellsArray);
    46       SimpleTest.finish();
    47     }
    49     SimpleTest.waitForExplicitFinish();
    50     addA11yXULTreeLoadEvent(doTest, "tree", new nsTableTreeView(3));
    51   ]]>
    52   </script>
    54   <hbox flex="1" style="overflow: auto;">
    55     <body xmlns="http://www.w3.org/1999/xhtml">
    56       <a target="_blank"
    57          href="https://bugzilla.mozilla.org/show_bug.cgi?id=503727"
    58          title="Reorganize implementation of XUL tree accessibility">
    59         Mozilla Bug 503727
    60       </a><br/>
    61       <p id="display"></p>
    62       <div id="content" style="display: none">
    63       </div>
    64       <pre id="test">
    65       </pre>
    66     </body>
    68     <vbox id="debug"/>
    69     <tree id="tree" flex="1">
    70       <treecols>
    71         <treecol id="col" flex="1" primary="true" label="column"/>
    72         <treecol id="scol" flex="1" label="column 2"/>
    73       </treecols>
    74       <treechildren id="treechildren"/>
    75     </tree>
    76   </hbox>
    78 </window>

mercurial