1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../fast/js/resources/js-test-pre.js"></script>
8 <div id="combo" tabindex=0 role="combobox" aria-expanded="false" aria-label="Test">
10 <div role="option">option 1</div>
11 <div role="option">option 2</div>
16 <p id="description"></p>
17 <div id="console"></div>
21 description("This tests that the aria roles for combobox and aria-expanded work correctly in conjunction.");
23 if (window.accessibilityController) {
25 var combobox = document.getElementById("combo");
28 combobox = accessibilityController.focusedElement;
30 debug("Role: " + combobox.role);
31 shouldBe("combobox.isExpanded", "false");
35 // As of now, the isExpanded value won't be updated through an AX call.
36 shouldBe("combobox.isExpanded", "false");
38 var firstChild = combobox.childAtIndex(0);
39 debug("Role: " + firstChild.role);
44 <script src="../fast/js/resources/js-test-post.js"></script>