| <script src="../../../resources/js-test-pre.js"></script> |
| <p>This tests the accessibility roles of multiselect elements and their option |
| <p id="notDRT">This test should only be run inside of DumpRenderTree.</p> |
| <select id="selectElement" multiple title="selectElement"> |
| <option SELECTED>Option 1</option> |
| <option>Option 2</option> |
| <option>Option 3</option> |
| if (window.testRunner && window.accessibilityController) { |
| document.getElementById("notDRT").style.visibility = "hidden"; |
| document.getElementById("selectElement").focus(); |
| shouldBe('accessibilityController.focusedElement.role', '"list"'); |
| shouldBe('accessibilityController.focusedElement.childAtIndex(0).role', '"text"'); |