tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_groupbox.xhtml (1672B)


      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"?>
      5 
      6 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
      7        title="Accessible XUL groupbox hierarchy tests">
      8 
      9  <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
     10 
     11  <script type="application/javascript"
     12          src="../common.js" />
     13  <script type="application/javascript"
     14          src="../role.js" />
     15 
     16  <script type="application/javascript">
     17  <![CDATA[
     18    ////////////////////////////////////////////////////////////////////////////
     19    // Test
     20 
     21    function doTest()
     22    {
     23      var accTree =
     24        { GROUPING: [
     25          { LABEL: [
     26            { STATICTEXT: [ ] }
     27          ] },
     28          { CHECKBUTTON: [ ] }
     29        ] };
     30      testAccessibleTree("groupbox", accTree);
     31 
     32      SimpleTest.finish()
     33    }
     34 
     35    SimpleTest.waitForExplicitFinish();
     36    addA11yLoadEvent(doTest);
     37  ]]>
     38  </script>
     39 
     40  <hbox flex="1" style="overflow: auto;">
     41    <body xmlns="http://www.w3.org/1999/xhtml">
     42      <a target="_blank"
     43         href="https://bugzilla.mozilla.org/show_bug.cgi?id=342045"
     44         title="Fix O(n^2) access to all the children of a container">
     45        Mozilla Bug 342045
     46      </a><br/>
     47      <p id="display"></p>
     48      <div id="content" style="display: none">
     49      </div>
     50      <pre id="test">
     51      </pre>
     52    </body>
     53 
     54    <vbox flex="1">
     55      <groupbox id="groupbox">
     56        <label value="Some caption"/>
     57        <checkbox label="some checkbox label" />
     58    </groupbox>
     59    </vbox>
     60  </hbox>
     61 
     62 </window>