|
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 type="application/javascript" |
|
10 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" /> |
|
11 |
|
12 <script type="application/javascript" |
|
13 src="../common.js" /> |
|
14 <script type="application/javascript" |
|
15 src="../role.js" /> |
|
16 |
|
17 <script type="application/javascript"> |
|
18 <![CDATA[ |
|
19 //////////////////////////////////////////////////////////////////////////// |
|
20 // Test |
|
21 |
|
22 function doTest() |
|
23 { |
|
24 var accTree = |
|
25 { GROUPING: [ |
|
26 { LABEL: [ |
|
27 { TEXT_LEAF: [ ] } |
|
28 ] }, |
|
29 { CHECKBUTTON: [ ] } |
|
30 ] }; |
|
31 testAccessibleTree("groupbox", accTree); |
|
32 |
|
33 SimpleTest.finish() |
|
34 } |
|
35 |
|
36 SimpleTest.waitForExplicitFinish(); |
|
37 addA11yLoadEvent(doTest); |
|
38 ]]> |
|
39 </script> |
|
40 |
|
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> |
|
54 |
|
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> |
|
62 |
|
63 </window> |
|
64 |