MSAA: Screen rect for <option> elements is always the zero rect
[WebKit-https.git] / LayoutTests / platform / win / accessibility / option-element-position-and-size.html
1 <html>
2
3 <head>
4     <link rel="stylesheet" href="../../../fast/js/resources/js-test-style.css">
5     <script src="../../../fast/js/resources/js-test-pre.js"></script>
6 </head>
7
8 <body id="body">
9
10 <p>This tests that option elements have the correct size.</p>
11
12 <p id="notDRT">This test should only be run inside of DumpRenderTree.</p>
13
14 <select id="selectElement" multiple>
15     <option SELECTED>Option 1</option>
16 </select>
17
18 <p id="console"></p>
19
20 <script>
21     if (window.layoutTestController && window.accessibilityController) {
22         document.getElementById("notDRT").style.visibility = "hidden";
23
24         layoutTestController.dumpAsText();
25
26         document.getElementById("selectElement").focus();
27
28         var optionElement = accessibilityController.focusedElement.childAtIndex(0);
29
30         debug("width: " + optionElement.width);
31         debug("height: " + optionElement.height);
32     }
33 </script>
34 </body>
35 </html>