Bug 24474: AX: in multi-body tables, asking for a cell at a specific coordinate can...
[WebKit-https.git] / LayoutTests / platform / mac-snowleopard / accessibility / table-updating.html
1 <html>
2
3 <head>
4 <script>
5     if (window.layoutTestController)
6         layoutTestController.dumpAsText();
7 </script>
8 <script type="text/javascript">
9
10 function removeTable()
11 {
12     var table = document.getElementById('table1');
13     var container = document.getElementById('tablecontainer');
14  
15     container.removeChild(table);  
16 }
17
18 </script>
19 </head>
20
21 <body id="body">
22
23 <div id='tablecontainer'>
24 <table id='table1' border='1' width=100><tr id="row"><td>A</td><td>B</td><td>C</td></tr></table>
25 </div>
26
27 <script>
28         if (window.accessibilityController) {
29
30             var body = document.getElementById("body");
31             body.focus();
32             var divContainer = accessibilityController.focusedElement.childAtIndex(0);
33
34             var results = document.getElementById("results");
35
36             divContainer.allAttributes();
37
38             removeTable();
39
40             divContainer.allAttributes();
41         }
42 </script>
43
44 Test passes if no crash.
45
46 </body>
47 </html>