1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
8 <a id="button1" tabindex="0" class="button" href="#" aria-haspopup="true" role="button">Options</a>
9 <span id="button2" class="button" tabindex="0" role="button" aria-haspopup="true">Options</span>
11 <button id="button3" type="button" aria-haspopup="true">Options</button>
12 <input id="button4" type="button" aria-haspopup="true" value="Options">
15 <p id="description"></p>
16 <div id="console"></div>
19 description("This tests that native style buttons with aria-haspopup appear as popup buttons.");
21 if (window.accessibilityController) {
23 for (var k = 1; k < 5; k++) {
25 document.getElementById("button" + k).focus();
26 var button = accessibilityController.focusedElement;
27 shouldBe("button.role", "'AXRole: AXPopUpButton'");
28 shouldBe("button.title", "'AXTitle: Options'");
30 // Verify that the title is not duplicated as the AXValue
31 shouldBe("button.stringValue", "'AXValue: '");
37 <script src="../../../fast/js/resources/js-test-post.js"></script>