Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 <!-- Firefox toolbar -->
7 <?xml-stylesheet href="chrome://browser/content/browser.css"
8 type="text/css"?>
10 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
11 title="Accessible XUL checkbox and radio hierarchy tests">
13 <!-- Firefox toolbar -->
14 <script type="application/javascript"
15 src="chrome://browser/content/browser.js"/>
17 <script type="application/javascript"
18 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
20 <script type="application/javascript"
21 src="../common.js" />
22 <script type="application/javascript"
23 src="../role.js" />
25 <script type="application/javascript">
26 <![CDATA[
27 ////////////////////////////////////////////////////////////////////////////
28 // Test
30 function doTest()
31 {
32 // checkbox
33 var accTree = {
34 role: ROLE_CHECKBUTTON,
35 children: [ ]
36 };
38 testAccessibleTree("checkbox", accTree);
40 // radiogroup
41 accTree = {
42 role: ROLE_GROUPING,
43 children: [
44 {
45 role: ROLE_RADIOBUTTON,
46 children: [ ]
47 },
48 {
49 role: ROLE_RADIOBUTTON,
50 children: [ ]
51 }
52 ]
53 };
55 testAccessibleTree("radiogroup", accTree);
57 // toolbar
58 accTree = {
59 role: ROLE_TOOLBAR,
60 name: "My toolbar",
61 children: [
62 {
63 role: ROLE_PUSHBUTTON,
64 name: "hello",
65 children: [ ]
66 }
67 ]
68 };
70 testAccessibleTree("toolbar", accTree);
72 // toolbar
73 accTree = {
74 role: ROLE_TOOLBAR,
75 name: "My second toolbar",
76 children: [
77 {
78 role: ROLE_PUSHBUTTON,
79 name: "hello",
80 children: [ ]
81 }
82 ]
83 };
85 testAccessibleTree("toolbar2", accTree);
87 if (!SEAMONKEY)
88 testAccessibleTree("tb_customizable", { TOOLBAR: [] });
90 SimpleTest.finish()
91 }
93 SimpleTest.waitForExplicitFinish();
94 addA11yLoadEvent(doTest);
95 ]]>
96 </script>
98 <hbox flex="1" style="overflow: auto;">
99 <body xmlns="http://www.w3.org/1999/xhtml">
100 <a target="_blank"
101 href="https://bugzilla.mozilla.org/show_bug.cgi?id=342045"
102 title="Fix O(n^2) access to all the children of a container">
103 Mozilla Bug 342045
104 </a><br/>
105 <p id="display"></p>
106 <div id="content" style="display: none">
107 </div>
108 <pre id="test">
109 </pre>
110 </body>
112 <vbox flex="1">
113 <checkbox id="checkbox" label="checkbox"/>
114 <radiogroup id="radiogroup">
115 <radio label="radio1"/>
116 <radio label="radio2"/>
117 </radiogroup>
118 <toolbar id="toolbar" toolbarname="My toolbar">
119 <toolbarbutton id="button1" label="hello"/>
120 </toolbar>
121 <toolbar id="toolbar2" toolbarname="2nd" aria-label="My second toolbar">
122 <toolbarbutton id="button2" label="hello"/>
123 </toolbar>
125 <toolbar id="tb_customizable" customizable="true"/>
126 </vbox>
127 </hbox>
129 </window>