2011-05-24 Jay Civelli <jcivelli@chromium.org>
[WebKit-https.git] / LayoutTests / accessibility / table-with-aria-role.html
1 <html>
2 <script>
3     if (window.layoutTestController)
4         layoutTestController.dumpAsText();
5 </script>
6 <body id="body">
7
8     <table border=1 role="button">
9        <tr><td>test</td><td>test</td><td>test</td></tr>
10        <tr><td>test</td><td>test</td><td>test</td></tr>
11     </table>
12
13     <table border=1 role="menu">
14        <tr><td>test</td><td>test</td><td>test</td></tr>
15        <tr><td>test</td><td>test</td><td>test</td></tr>
16     </table>
17
18     <div id="result"></div>
19     
20     <script>
21         if (window.accessibilityController) {
22             var body = document.getElementById("body");
23             body.focus();
24             result.innerText += accessibilityController.focusedElement.attributesOfChildren();
25         }
26     </script>
27 </body>
28 </html>