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

Unified Diff: LayoutTests/accessibility/table-headers.html

Issue 890273002: Return table headers for aria tables. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/accessibility/table-headers-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/table-headers.html
diff --git a/LayoutTests/accessibility/table-headers.html b/LayoutTests/accessibility/table-headers.html
index 0c3672de35468d7d33be3ac06ee39576dd9b4861..eb2e03630683a3ba85f00996ab0514c01b125c44 100644
--- a/LayoutTests/accessibility/table-headers.html
+++ b/LayoutTests/accessibility/table-headers.html
@@ -132,7 +132,23 @@
<th>row head</td>
</tr>
</table>
-
+<div id="table7" role="grid">
+ <div role="row">
+ <div role="columnheader">col head</div>
+ <div role="columnheader">col head</div>
+ <div role="columnheader">col head</div>
+ </div>
+ <div role="row">
+ <div role="rowheader">row head</div>
+ <div role="gridcell">data</div>
+ <div role="rowheader">row head</div>
+ </div>
+ <div role="row">
+ <div role="rowheader">row head</div>
+ <div role="rowheader">row head</div>
+ <div role="columnheader">col head</div>
+ </div>
+</div>
<p id="description"></p>
<div id="console"></div>
@@ -210,6 +226,21 @@
shouldBeTrue("table6.columnHeaderAtIndex(3).isEqual(table6.cellForColumnAndRow(2, 0))");
shouldBeTrue("table6.columnHeaderAtIndex(4).isEqual(table6.cellForColumnAndRow(2, 2))");
shouldBe("table6.columnHeadersCount", "5");
+
+ //Aria tables
+ var table7 = accessibilityController.accessibleElementById("table7");
+ // Row headers
+ shouldBeTrue("table7.rowHeaderAtIndex(0).isEqual(table7.cellForColumnAndRow(0, 1))");
+ shouldBeTrue("table7.rowHeaderAtIndex(1).isEqual(table7.cellForColumnAndRow(2, 1))");
+ shouldBeTrue("table7.rowHeaderAtIndex(2).isEqual(table7.cellForColumnAndRow(0, 2))");
+ shouldBeTrue("table7.rowHeaderAtIndex(3).isEqual(table7.cellForColumnAndRow(1, 2))");
+ shouldBe("table7.rowHeadersCount", "4");
+ // Column headers
+ shouldBeTrue("table7.columnHeaderAtIndex(0).isEqual(table7.cellForColumnAndRow(0, 0))");
+ shouldBeTrue("table7.columnHeaderAtIndex(1).isEqual(table7.cellForColumnAndRow(1, 0))");
+ shouldBeTrue("table7.columnHeaderAtIndex(2).isEqual(table7.cellForColumnAndRow(2, 0))");
+ shouldBeTrue("table7.columnHeaderAtIndex(3).isEqual(table7.cellForColumnAndRow(2, 2))");
+ shouldBe("table7.columnHeadersCount", "4");
}
</script>
« 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