Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / table-with-aria-role.html
1 <html>
2 <script src="../resources/js-test.js"></script>
3 <body id="body">
4
5 <div id="content">
6     <table border=1 role="button" id='table1'>
7        <tr><td>test</td><td>test</td><td>test</td></tr>
8        <tr><td>test</td><td>test</td><td>test</td></tr>
9     </table>
10
11     <table border=1 role="group" id='table2'>
12        <tr><td>test</td><td>test</td><td>test</td></tr>
13        <tr><td>test</td><td>test</td><td>test</td></tr>
14     </table>
15 </div>
16
17     <div id="result"></div>
18     
19     <script>
20         if (window.accessibilityController) {
21             debug("Table1 should not have a table role because it's a button: " + accessibilityController.accessibleElementById('table1').role);
22             debug("Table2 should not have a table role because it's a group: " + accessibilityController.accessibleElementById('table2').role);
23
24             document.getElementById("content").style.display = "none";
25         }
26     </script>
27 </body>
28 </html>