accessible/tests/mochitest/table/test_indexes_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 indexes 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="../table.js" />
    22   <script type="application/javascript">
    23   <![CDATA[
    24     ////////////////////////////////////////////////////////////////////////////
    25     // Test
    27     // gA11yEventDumpID = "debug";
    29     function doTest()
    30     {
    31       var idxes = [
    32         [0, 1],
    33         [2, 3],
    34         [4, 5]
    35       ];
    36       testTableIndexes("tree", idxes);
    38       SimpleTest.finish();
    39     }
    41     SimpleTest.waitForExplicitFinish();
    42     addA11yXULTreeLoadEvent(doTest, "tree", new nsTableTreeView(3));
    43   ]]>
    44   </script>
    46   <hbox flex="1" style="overflow: auto;">
    47     <body xmlns="http://www.w3.org/1999/xhtml">
    48       <a target="_blank"
    49          href="https://bugzilla.mozilla.org/show_bug.cgi?id=503727"
    50          title="Reorganize implementation of XUL tree accessibility">
    51         Mozilla Bug 503727
    52       </a><br/>
    53       <p id="display"></p>
    54       <div id="content" style="display: none">
    55       </div>
    56       <pre id="test">
    57       </pre>
    58     </body>
    60     <vbox id="debug"/>
    61     <tree id="tree" flex="1">
    62       <treecols>
    63         <treecol id="col" flex="1" primary="true" label="column"/>
    64         <treecol id="scol" flex="1" label="column 2"/>
    65       </treecols>
    66       <treechildren id="treechildren"/>
    67     </tree>
    68   </hbox>
    70 </window>

mercurial