Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / table-with-rules.html
1 <html>
2 <script>
3     if (window.testRunner)
4         testRunner.dumpAsText();
5 </script>
6 <body id="body">
7         
8     <table id="testTable1" rules="rows"><tr><td>asdf</td><td>asdf</td></tr></table>
9     <table id="testTable2" rules="all"><tr><td>asdf</td><td>asdf</td></tr></table>
10     <table id="testTable3" rules="col"><tr><td>asdf</td><td>asdf</td></tr></table>
11     <table id="testTable4" rules="groups"><tr><td>asdf</td><td>asdf</td></tr></table>
12     <table id="testTable5"><tr><td>asdf</td><td>asdf</td></tr></table>
13     
14     <BR>------------------------------------<BR>
15     
16     <div id="result"></div>
17  
18     <script>
19         if (window.accessibilityController) {
20             var result = document.getElementById("result");
21             var body = document.getElementById("body");
22             body.focus();
23             
24             // these should be the tables. in this order
25             // the last two tables should not show up as tables
26             for (var k = 1; k < 6; k++) {
27                 var table = accessibilityController.focusedElement.childAtIndex(k);
28                 result.innerText += table.allAttributes() + "\n\n"; 
29             }
30         }
31     </script>
32 </body>
33 </html>