1 <!DOCTYPE HTML PUBLIC
"-//w3c//dtd html 4.0 transitional//en">
4 <meta http-equiv=
"content-type" content=
"text/html; charset=UTF-8">
5 <link rel=
"stylesheet" type=
"text/css" href=
"chrome://mochikit/content/tests/SimpleTest/test.css" />
6 <script src=
"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
8 <script type=
"application/javascript"
9 src=
"../common.js"></script>
11 <script type=
"application/javascript">
14 var accTable = getAccessible(
"table", [nsIAccessibleTable]);
16 var s = window.getSelection();
20 var cell = getNode(
"col2b");
21 var range = document.createRange();
22 range.selectNode(cell);
25 is(accTable.selectedCellCount,
1,
"only one cell selected");
26 cell = getNode(
"col2a");
27 range = document.createRange();
28 range.selectNode(cell);
30 cell = getNode(
"col2c");
31 range = document.createRange();
32 range.selectNode(cell);
34 is(accTable.selectedColumnCount,
1,
"only one column selected");
36 cell = getNode(
"row2a");
37 range = document.createRange();
38 range.selectNode(cell);
40 cell = getNode(
"row2b");
41 range = document.createRange();
42 range.selectNode(cell);
44 range = document.createRange();
45 cell = getNode(
"row2c");
46 range.selectNode(cell);
49 is(accTable.selectedRowCount,
1,
"no cells selected");
51 // These shouldn't throw.
53 accTable.getColumnDescription(
1);
54 accTable.getRowDescription(
1);
56 ok(false,
"getColumnDescription/getRowDescription shouldn't throw.");
60 SimpleTest.waitForExplicitFinish();
61 addA11yLoadEvent(doTest);
66 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=410052">Mozilla Bug
410052</a>
68 href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=760878"
69 title=
"decomtaminate Get Row / Column Description() on accessible tables">
74 <div id=
"content" style=
"display: none"></div>
79 <br><br><b> Testing Table:
</b><br><br>
81 <table id=
"table" border=
"1"
82 summary=
"this is a test table for nsIAccessibleTable" >
83 <caption>Test Table
</caption>
87 <th>columnHeader_1
</th>
88 <th id =
"col2a">columnHeader_2
</th>
89 <th>columnHeader_3
</th>
93 <th id=
"row2a">rowHeader_1
</th>
94 <td id=
"row2b">row1_column1
</td>
95 <td id =
"col2b">row1_column2
</td>
96 <td id=
"row2c">row1_column3
</td>
100 <td>row2_column1
</td>
101 <td id =
"col2c">row2_column2
</td>
102 <td>row2_column3
</td>