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

Unified Diff: LayoutTests/accessibility/aria-owns-grid.html

Issue 1197723003: Fix aria-owns support in ARIA grids. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix style nit Created 5 years, 6 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 | Source/modules/accessibility/AXARIAGrid.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/aria-owns-grid.html
diff --git a/LayoutTests/accessibility/aria-owns-grid.html b/LayoutTests/accessibility/aria-owns-grid.html
new file mode 100644
index 0000000000000000000000000000000000000000..0b24222c4f48c2be5979c0930a6b97e5b9ec61b7
--- /dev/null
+++ b/LayoutTests/accessibility/aria-owns-grid.html
@@ -0,0 +1,35 @@
+<!DOCTYPE HTML>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+
+<style>
+.hideAllContainers .container { display: none; }
+</style>
+
+<div class="container">
+ <div id="grid" role="grid" aria-owns="row1 row2"></div>
+ <div id="row1" role="row">
+ <div role="gridcell">Cell 1, 1</div>
+ <div role="gridcell">Cell 1, 2</div>
+ <div role="gridcell">Cell 1, 3</div>
+ </div>
+ <div id="row2" role="row">
+ <div role="gridcell">Cell 2, 1</div>
+ <div role="gridcell">Cell 2, 2</div>
+ <div role="gridcell">Cell 2, 3</div>
+ </div>
+</div>
+
+<script>
+test(function(t) {
+ var axGrid = accessibilityController.accessibleElementById("grid");
+ assert_equals(axGrid.role, "AXRole: AXTable");
+ assert_equals(axGrid.columnCount, 3);
+ assert_equals(axGrid.rowCount, 2);
+}, "Aria-owns works on ARIA grids.");
+</script>
+
+<script>
+if (window.testRunner)
+ document.body.className = "hideAllContainers";
+</script>
« no previous file with comments | « no previous file | Source/modules/accessibility/AXARIAGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698