| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test-pre.js"></script> |
| <div id="combo" tabindex=0 role="combobox" aria-expanded="false" aria-label="Test"> |
| <div role="option">option 1</div> |
| <div role="option">option 2</div> |
| description("This tests that the aria roles for combobox and aria-expanded work correctly in conjunction."); |
| if (window.accessibilityController) { |
| var combobox = document.getElementById("combo"); |
| combobox = accessibilityController.focusedElement; |
| debug("Role: " + combobox.role); |
| shouldBe("combobox.isExpanded", "false"); |
| // As of now, the isExpanded value won't be updated through an AX call. |
| shouldBe("combobox.isExpanded", "false"); |
| var firstChild = combobox.childAtIndex(0); |
| debug("Role: " + firstChild.role); |
| <script src="../resources/js-test-post.js"></script> |