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

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

Issue 812243004: TableCaptionElement is not exposed to accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding layout test case 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/accessibility/table-caption-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/table-caption.html
diff --git a/LayoutTests/accessibility/table-caption.html b/LayoutTests/accessibility/table-caption.html
new file mode 100644
index 0000000000000000000000000000000000000000..551bea5d58651d059ab9ac335aba493ae667eb26
--- /dev/null
+++ b/LayoutTests/accessibility/table-caption.html
@@ -0,0 +1,35 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src="../resources/js-test.js"></script>
+</head>
+<body id="body">
+
+<div id="content">
+
+<table id="table" border=1>
+ <caption> TableCaption </caption>
+ <tr><td>foo</td><td>bar</td></tr>
+</table>
+
+</div>
+
+<script>
+
+ description("This tests that table caption element is exposed for accessibility.");
+
+ if (window.accessibilityController) {
+ var table = accessibilityController.accessibleElementById("table");
+ shouldBe("table.childrenCount", "5");
+ window.captionText = table.childAtIndex(0).childAtIndex(0).stringValue;
+ shouldBe("captionText", "'AXValue: TableCaption'");
+ // Clear the HTML for cleaner results.
+ document.getElementById("content").innerHTML = "";
+ }
+
+
+</script>
+
+</body>
+</html>
+
« no previous file with comments | « no previous file | LayoutTests/accessibility/table-caption-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698