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

Side by Side Diff: LayoutTests/accessibility/table-headers.html

Issue 799913002: Adding test accessibility/table-headers.html. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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-headers-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
8 <table id="table1">
9 <thead>
10 <tr>
11 <th>No</th>
12 <th>Month</th>
13 <th>Expenses</th>
14 </tr>
15 </thead>
16 <tbody>
17 <tr>
18 <th>1</th>
19 <td>Jan</td>
20 <td>100</td>
21 </tr>
22 <tr>
23 <th>2</th>
24 <td>Feb</td>
25 <td>150</td>
26 </tr>
27 <tr>
28 <th>3</th>
29 <td>Mar</td>
30 <td>200</td>
31 </tr>
32 </tbody>
33 </table>
34
35 <p id="description"></p>
36 <div id="console"></div>
37
38 <script>
39
40 description("Check whether column and row headers are reported correctly");
41
42 if (window.accessibilityController) {
43 var table = accessibilityController.accessibleElementById("table1");
44 // Row headers
45 shouldBeTrue("table.rowHeaderAtIndex(0).isEqual(table.cellForColumnAndRo w(0, 0))");
46 shouldBeTrue("table.rowHeaderAtIndex(1).isEqual(table.cellForColumnAndRo w(0, 1))");
47 shouldBeTrue("table.rowHeaderAtIndex(2).isEqual(table.cellForColumnAndRo w(0, 2))");
48 shouldBeTrue("table.rowHeaderAtIndex(3).isEqual(table.cellForColumnAndRo w(0, 3))");
49
50 // Column headers
51 shouldBeTrue("table.columnHeaderAtIndex(0).isEqual(table.cellForColumnAn dRow(0, 0))");
52 shouldBeTrue("table.columnHeaderAtIndex(1).isEqual(table.cellForColumnAn dRow(1, 0))");
53 shouldBeTrue("table.columnHeaderAtIndex(2).isEqual(table.cellForColumnAn dRow(2, 0))");
54 }
55
56 </script>
57
58 </body>
59 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/accessibility/table-headers-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698