accessible/tests/mochitest/table/test_struct_tree.xul

branch
TOR_BUG_9701
changeset 8
97036ab72558
equal deleted inserted replaced
-1:000000000000 0:f21102ace578
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 accessible tree and table interface tests for XUL trees">
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="../role.js" />
21 <script type="application/javascript"
22 src="../table.js" />
23
24 <script type="application/javascript">
25 <![CDATA[
26 ////////////////////////////////////////////////////////////////////////////
27 // Test
28
29 // gA11yEventDumpID = "debug";
30
31 function doTest()
32 {
33 var cellsArray = [
34 [kDataCell, kDataCell],
35 [kDataCell, kDataCell],
36 [kDataCell, kDataCell]
37 ];
38
39 testTableStruct("table", cellsArray, kTreeColumnHeader);
40
41 SimpleTest.finish();
42 }
43
44 SimpleTest.waitForExplicitFinish();
45 addA11yXULTreeLoadEvent(doTest, "table", new nsTableTreeView(3));
46 ]]>
47 </script>
48
49 <hbox flex="1" style="overflow: auto;">
50 <body xmlns="http://www.w3.org/1999/xhtml">
51 <a target="_blank"
52 href="https://bugzilla.mozilla.org/show_bug.cgi?id=512424"
53 title="implement IAccessibleTable2">
54 Mozilla Bug 512424
55 </a><br/>
56 <p id="display"></p>
57 <div id="content" style="display: none">
58 </div>
59 <pre id="test">
60 </pre>
61 </body>
62
63 <vbox id="debug"/>
64 <tree id="table" flex="1">
65 <treecols>
66 <treecol id="col" flex="1" label="column"/>
67 <treecol id="scol" flex="1" label="column 2"/>
68 </treecols>
69 <treechildren id="treechildren"/>
70 </tree>
71 </hbox>
72
73 </window>
74

mercurial