Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / table-missing-column-header-crash.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <table id="table" border="1" cellspacing="1">
9 <tbody><tr><td><table border="1" width="100%"><tbody>
10 <tr><td><a href="/" accesskey="1">Home</a></td>
11 <td><a href="/">Help</a></td>
12 <td><a href="/">Login</a></td></tr></tbody></table>
13 </td></tr><tr><td colspan="4">
14 <input type="text"></td><td colspan="2"><a href="/">Tip us on news</a></td>
15 </tr></tbody></table>
16
17
18 <p id="description"></p>
19 <div id="console"></div>
20
21 <script>
22
23     description("This tests that accessing invalid column headers does not crash.");
24
25     if (window.accessibilityController) {
26         var table = accessibilityController.accessibleElementById("table");
27
28         var cell = table.childAtIndex(1).childAtIndex(1);
29         // This should not crash.
30         cell.attributesOfColumnHeaders();
31     }
32
33 </script>
34
35 <script src="../resources/js-test-post.js"></script>
36 </body>
37 </html>