|
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 Table selection tests"> |
|
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="../states.js" /> |
|
23 <script type="application/javascript" |
|
24 src="../table.js" /> |
|
25 |
|
26 <script type="application/javascript"> |
|
27 <![CDATA[ |
|
28 //////////////////////////////////////////////////////////////////////////// |
|
29 // Test |
|
30 |
|
31 // gA11yEventDumpID = "debug"; |
|
32 |
|
33 function doTest() |
|
34 { |
|
35 var cellsArray = |
|
36 [ |
|
37 [false, false], |
|
38 [false, false], |
|
39 [false, false] |
|
40 ]; |
|
41 |
|
42 testTableSelection("tree", cellsArray); |
|
43 testSelectTableRow("tree", 0, cellsArray); |
|
44 testUnselectTableRow("tree", 0, cellsArray); |
|
45 |
|
46 SimpleTest.finish(); |
|
47 } |
|
48 |
|
49 SimpleTest.waitForExplicitFinish(); |
|
50 addA11yXULTreeLoadEvent(doTest, "tree", new nsTableTreeView(3)); |
|
51 ]]> |
|
52 </script> |
|
53 |
|
54 <hbox flex="1" style="overflow: auto;"> |
|
55 <body xmlns="http://www.w3.org/1999/xhtml"> |
|
56 <a target="_blank" |
|
57 href="https://bugzilla.mozilla.org/show_bug.cgi?id=503727" |
|
58 title="Reorganize implementation of XUL tree accessibility"> |
|
59 Mozilla Bug 503727 |
|
60 </a><br/> |
|
61 <p id="display"></p> |
|
62 <div id="content" style="display: none"> |
|
63 </div> |
|
64 <pre id="test"> |
|
65 </pre> |
|
66 </body> |
|
67 |
|
68 <vbox id="debug"/> |
|
69 <tree id="tree" flex="1"> |
|
70 <treecols> |
|
71 <treecol id="col" flex="1" primary="true" label="column"/> |
|
72 <treecol id="scol" flex="1" label="column 2"/> |
|
73 </treecols> |
|
74 <treechildren id="treechildren"/> |
|
75 </tree> |
|
76 </hbox> |
|
77 |
|
78 </window> |
|
79 |