Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / table-caption.html
blob551bea5d58651d059ab9ac335aba493ae667eb26
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">
8 <div id="content">
10 <table id="table" border=1>
11 <caption> TableCaption </caption>
12 <tr><td>foo</td><td>bar</td></tr>
13 </table>
15 </div>
17 <script>
19 description("This tests that table caption element is exposed for accessibility.");
21 if (window.accessibilityController) {
22 var table = accessibilityController.accessibleElementById("table");
23 shouldBe("table.childrenCount", "5");
24 window.captionText = table.childAtIndex(0).childAtIndex(0).stringValue;
25 shouldBe("captionText", "'AXValue: TableCaption'");
26 // Clear the HTML for cleaner results.
27 document.getElementById("content").innerHTML = "";
31 </script>
33 </body>
34 </html>