|
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 header information cells for XUL tree"> |
|
8 |
|
9 <script type="application/javascript" |
|
10 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" /> |
|
11 |
|
12 <script type="application/javascript" |
|
13 src="../treeview.js" /> |
|
14 |
|
15 <script type="application/javascript" |
|
16 src="../common.js" /> |
|
17 <script type="application/javascript" |
|
18 src="../events.js" /> |
|
19 <script type="application/javascript" |
|
20 src="../table.js" /> |
|
21 |
|
22 <script type="application/javascript"> |
|
23 <![CDATA[ |
|
24 //////////////////////////////////////////////////////////////////////////// |
|
25 // Test |
|
26 |
|
27 // gA11yEventDumpID = "debug"; |
|
28 |
|
29 function doTest() |
|
30 { |
|
31 var treeAcc = getAccessible("tree", [nsIAccessibleTable]); |
|
32 |
|
33 var headerInfoMap = [ |
|
34 { |
|
35 cell: treeAcc.getCellAt(0, 0), |
|
36 rowHeaderCells: [], |
|
37 columnHeaderCells: [ "col" ] |
|
38 }, |
|
39 { |
|
40 cell: treeAcc.getCellAt(0, 1), |
|
41 rowHeaderCells: [], |
|
42 columnHeaderCells: [ "scol" ] |
|
43 }, |
|
44 { |
|
45 cell: treeAcc.getCellAt(1, 0), |
|
46 rowHeaderCells: [], |
|
47 columnHeaderCells: [ "col" ] |
|
48 }, |
|
49 { |
|
50 cell: treeAcc.getCellAt(1, 1), |
|
51 rowHeaderCells: [], |
|
52 columnHeaderCells: [ "scol" ] |
|
53 }, |
|
54 { |
|
55 cell: treeAcc.getCellAt(2, 0), |
|
56 rowHeaderCells: [], |
|
57 columnHeaderCells: [ "col" ] |
|
58 }, |
|
59 { |
|
60 cell: treeAcc.getCellAt(2, 1), |
|
61 rowHeaderCells: [], |
|
62 columnHeaderCells: [ "scol" ] |
|
63 }, |
|
64 ]; |
|
65 |
|
66 testHeaderCells(headerInfoMap); |
|
67 |
|
68 SimpleTest.finish(); |
|
69 } |
|
70 |
|
71 SimpleTest.waitForExplicitFinish(); |
|
72 addA11yXULTreeLoadEvent(doTest, "tree", new nsTableTreeView(3)); |
|
73 ]]> |
|
74 </script> |
|
75 |
|
76 <hbox flex="1" style="overflow: auto;"> |
|
77 <body xmlns="http://www.w3.org/1999/xhtml"> |
|
78 <a target="_blank" |
|
79 href="https://bugzilla.mozilla.org/show_bug.cgi?id=512424" |
|
80 title="implement IAccessibleTable2"> |
|
81 Mozilla Bug 512424 |
|
82 </a><br/> |
|
83 <p id="display"></p> |
|
84 <div id="content" style="display: none"> |
|
85 </div> |
|
86 <pre id="test"> |
|
87 </pre> |
|
88 </body> |
|
89 |
|
90 <vbox id="debug"/> |
|
91 <tree id="tree" flex="1"> |
|
92 <treecols> |
|
93 <treecol id="col" flex="1" primary="true" label="column"/> |
|
94 <treecol id="scol" flex="1" label="column 2"/> |
|
95 </treecols> |
|
96 <treechildren id="treechildren"/> |
|
97 </tree> |
|
98 </hbox> |
|
99 |
|
100 </window> |
|
101 |