Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / display-table-cell-causes-crash.html
1 <html>
2 <head>
3 <script src="../resources/js-test-pre.js"></script>
4 </head>
5 <body>
6
7 <p id="description">This test makes sure that an element with a display of table-cell doesn't cause a crash when accessibility code assumes it must be a TD or TH element.</p>
8
9 <div id="console"></div>
10
11 <table></table>
12
13 <script>
14     if (window.testRunner)
15         testRunner.dumpAsText();
16
17     // Ensure AX is loaded.
18     if (window.accessibilityController) {
19         accessibilityController.accessibleElementById("description");
20     }
21     var table = document.querySelector('table');
22     var span = document.createElement('span');
23     table.appendChild(span);
24     var div = document.createElement('div');
25     div.style.display = 'table-cell';
26     table.appendChild(div);
27     var input = document.createElement('input');
28     input.setAttribute('autofocus', 'autofocus');
29     div.appendChild(input);
30 </script>
31
32 <script src="../resources/js-test-post.js"></script>
33
34 </body>
35 </html>