3 <script src="../resources/js-test-pre.js"></script>
10 <select id="menulist">
11 <option selected>One</option>
13 <option>Three</option>
19 <p id="description"></p>
20 <div id="console"></div>
25 description("This tests that there's no crash if we hide menu list and then try to access accessibility information.");
27 if (window.accessibilityController) {
28 var menulist = document.getElementById("menulist");
30 menulist.selectedIndex = 1;
32 var accessibleMenulist = accessibilityController.focusedElement;
33 debug("Role before removal: " + accessibleMenulist.role);
35 menulist.style.display = "none";
39 debug("Role after removal: " + accessibleMenulist.role);
47 <script src="../resources/js-test-post.js"></script>