accessible/tests/mochitest/table/test_indexes_listbox.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/tests/mochitest/table/test_indexes_listbox.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,85 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     1.6 +<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
     1.7 +                 type="text/css"?>
     1.8 +
     1.9 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.10 +        title="Table indices of accessible table for XUL listbox">
    1.11 +
    1.12 +  <script type="application/javascript"
    1.13 +          src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
    1.14 +
    1.15 +  <script type="application/javascript"
    1.16 +          src="../common.js"></script>
    1.17 +  <script type="application/javascript"
    1.18 +          src="../table.js"></script>
    1.19 +
    1.20 +  <script type="application/javascript">
    1.21 +  <![CDATA[
    1.22 +    function doTest()
    1.23 +    {
    1.24 +      var idxes = [
    1.25 +        [0, 1, 2],
    1.26 +        [3, 4, 5],
    1.27 +        [6, 7, 8]
    1.28 +      ];
    1.29 +      testTableIndexes("listbox", idxes);
    1.30 +
    1.31 +      SimpleTest.finish();
    1.32 +    }
    1.33 +
    1.34 +    SimpleTest.waitForExplicitFinish();
    1.35 +    addA11yLoadEvent(doTest);
    1.36 +  ]]>
    1.37 +  </script>
    1.38 +
    1.39 +  <hbox style="overflow: auto;">
    1.40 +  <body xmlns="http://www.w3.org/1999/xhtml">
    1.41 +    <a target="_blank"
    1.42 +       href="https://bugzilla.mozilla.org/show_bug.cgi?id=512424"
    1.43 +       title="implement IAccessibleTable2">
    1.44 +      Mozilla Bug 512424
    1.45 +    </a>
    1.46 +
    1.47 +    <p id="display"></p>
    1.48 +    <div id="content" style="display: none">
    1.49 +    </div>
    1.50 +    <pre id="test">
    1.51 +    </pre>
    1.52 +  </body>
    1.53 +
    1.54 +  <vbox flex="1">
    1.55 +
    1.56 +    <label control="listbox" value="multicolumn listbox with header"/>
    1.57 +    <listbox id="listbox">
    1.58 +      <listhead>
    1.59 +        <listheader label="header1"/>
    1.60 +        <listheader label="header2"/>
    1.61 +        <listheader label="header3"/>
    1.62 +      </listhead>
    1.63 +      <listcols>
    1.64 +        <listcol flex="1"/>
    1.65 +        <listcol flex="1"/>
    1.66 +        <listcol flex="1"/>
    1.67 +      </listcols>
    1.68 +      <listitem>
    1.69 +        <listcell label="cell0"/>
    1.70 +        <listcell label="cell1"/>
    1.71 +        <listcell label="cell2"/>
    1.72 +      </listitem>
    1.73 +      <listitem>
    1.74 +        <listcell label="cell3"/>
    1.75 +        <listcell label="cell4"/>
    1.76 +        <listcell label="cell5"/>
    1.77 +      </listitem>
    1.78 +      <listitem>
    1.79 +        <listcell label="cell6"/>
    1.80 +        <listcell label="cell7"/>
    1.81 +        <listcell label="cell8"/>
    1.82 +      </listitem>
    1.83 +    </listbox>
    1.84 +  </vbox>
    1.85 +  </hbox>
    1.86 +
    1.87 +</window>
    1.88 +

mercurial