Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / win / parent-element.html
1 <html>
2
3 <head>
4     <script src="../../resources/js-test.js"></script>
5 </head>
6
7 <body id="body">
8
9 <p>This tests that elements return their correct parent element.</p>
10
11 <p id="notDRT">This test should only be run inside of DumpRenderTree.</p>
12
13 <select id="selectElement" multiple>
14     <option>Option 1</option>
15 </select>
16
17 <p id="console"></p>
18
19 <script>
20     if (window.testRunner && window.accessibilityController) {
21         document.getElementById("notDRT").style.visibility = "hidden";
22
23         document.getElementById("selectElement").focus();
24
25         var optionElement = accessibilityController.focusedElement.childAtIndex(0);
26
27         shouldBe('optionElement.parentElement().role', '"AXRole: AXList"');
28     }
29 </script>
30 </body>
31 </html>