|
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="Table indices of accessible table for XUL listbox"> |
|
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"></script> |
|
14 <script type="application/javascript" |
|
15 src="../table.js"></script> |
|
16 |
|
17 <script type="application/javascript"> |
|
18 <![CDATA[ |
|
19 function doTest() |
|
20 { |
|
21 var idxes = [ |
|
22 [0, 1, 2], |
|
23 [3, 4, 5], |
|
24 [6, 7, 8] |
|
25 ]; |
|
26 testTableIndexes("listbox", idxes); |
|
27 |
|
28 SimpleTest.finish(); |
|
29 } |
|
30 |
|
31 SimpleTest.waitForExplicitFinish(); |
|
32 addA11yLoadEvent(doTest); |
|
33 ]]> |
|
34 </script> |
|
35 |
|
36 <hbox style="overflow: auto;"> |
|
37 <body xmlns="http://www.w3.org/1999/xhtml"> |
|
38 <a target="_blank" |
|
39 href="https://bugzilla.mozilla.org/show_bug.cgi?id=512424" |
|
40 title="implement IAccessibleTable2"> |
|
41 Mozilla Bug 512424 |
|
42 </a> |
|
43 |
|
44 <p id="display"></p> |
|
45 <div id="content" style="display: none"> |
|
46 </div> |
|
47 <pre id="test"> |
|
48 </pre> |
|
49 </body> |
|
50 |
|
51 <vbox flex="1"> |
|
52 |
|
53 <label control="listbox" value="multicolumn listbox with header"/> |
|
54 <listbox id="listbox"> |
|
55 <listhead> |
|
56 <listheader label="header1"/> |
|
57 <listheader label="header2"/> |
|
58 <listheader label="header3"/> |
|
59 </listhead> |
|
60 <listcols> |
|
61 <listcol flex="1"/> |
|
62 <listcol flex="1"/> |
|
63 <listcol flex="1"/> |
|
64 </listcols> |
|
65 <listitem> |
|
66 <listcell label="cell0"/> |
|
67 <listcell label="cell1"/> |
|
68 <listcell label="cell2"/> |
|
69 </listitem> |
|
70 <listitem> |
|
71 <listcell label="cell3"/> |
|
72 <listcell label="cell4"/> |
|
73 <listcell label="cell5"/> |
|
74 </listitem> |
|
75 <listitem> |
|
76 <listcell label="cell6"/> |
|
77 <listcell label="cell7"/> |
|
78 <listcell label="cell8"/> |
|
79 </listitem> |
|
80 </listbox> |
|
81 </vbox> |
|
82 </hbox> |
|
83 |
|
84 </window> |
|
85 |