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

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

mercurial