Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(798)

Side by Side Diff: LayoutTests/accessibility/table-cells-with-colspan.html

Issue 914233002: Use effective columns when cells with colspan are present. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Second attempt to land this patch Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/accessibility/table-cells-with-colspan-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body id="body">
7 <table id="table1" border="1">
8 <tr>
9 <td colspan="10">data</td>
10 <th scope="colgroup" colspan="5">col head</td>a
11 <td colspan="2">data</td>
12 </tr>
13 </table>
14 <table id="table2" border="1">
15 <tr>
16 <td rowspan="2" colspan="3">data</td>
17 <th scope="colgroup" colspan="2">col head</th>
18 </tr>
19 <tr>
20 <th scope="col">col head</th>
21 <th scope="col">col head</th>
22 </tr>
23 </table>
24 <p id="description"></p>
25 <div id="console"></div>
26
27 <script>
28
29 description("Check whether cells with colspan are reported properly");
30
31 if (window.accessibilityController) {
32 var table1 = accessibilityController.accessibleElementById("table1");
33 shouldBe("table1.columnCount", "3");
34
35 var cell_0_0 = table1.cellForColumnAndRow(0, 0);
36 shouldBe("cell_0_0.role", "'AXRole: AXCell'");
37 shouldBe("cell_0_0.columnIndexRange()", "'{0, 1}'");
38
39 var cell_0_1 = table1.cellForColumnAndRow(1, 0);
40 shouldBe("cell_0_1.role", "'AXRole: AXColumnHeader'");
41 shouldBe("cell_0_1.columnIndexRange()", "'{1, 1}'");
42
43 var cell_0_2 = table1.cellForColumnAndRow(2, 0);
44 shouldBe("cell_0_2.role", "'AXRole: AXCell'");
45 shouldBe("cell_0_2.columnIndexRange()", "'{2, 1}'");
46
47 var table2 = accessibilityController.accessibleElementById("table2");
48 shouldBe("table2.columnCount", "3");
49 shouldBe("table2.columnHeadersCount", "3");
50
51 var cell_0_1 = table2.cellForColumnAndRow(1, 0)
52 shouldBe("cell_0_1.columnIndexRange()", "'{1, 2}'");
53 var cell_0_2 = table2.cellForColumnAndRow(2, 0);
54 shouldBe("cell_0_2.columnIndexRange()", "'{1, 2}'");
55 shouldBeTrue("table2.columnHeaderAtIndex(0).isEqual(cell_0_1)")
56 shouldBeTrue("table2.columnHeaderAtIndex(0).isEqual(cell_0_2)");
57 shouldBeTrue("table2.columnHeaderAtIndex(1).isEqual(table2.cellForColumn AndRow(1, 1))")
58 shouldBeTrue("table2.columnHeaderAtIndex(2).isEqual(table2.cellForColumn AndRow(2, 1))");
59 }
60
61 </script>
62
63 </body>
64 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/accessibility/table-cells-with-colspan-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698