accessible/tests/mochitest/tree/test_groupbox.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial