| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../resources/js-test-pre.js"></script> |
| var successfullyParsed = false; |
| <div id="fakeButton" tabindex=0 role="spinbutton" aria-label="spinner">button</div> |
| <input id="spinner" name="spinner" value="5" aria-valuenow="5" autocomplete="off" role="spinbutton"> |
| description("This test makes sure that spinbuttons appear."); |
| if (window.accessibilityController) { |
| var button = accessibilityController.accessibleElementById("fakeButton"); |
| shouldBe("button.description", "'AXLabel: spinner'"); |
| shouldBeFalse("button.isIgnored"); |
| // Test the aria-valuenow attribute on the spinbutton. |
| var button2 = accessibilityController.accessibleElementById("spinner"); |
| shouldBe("button2.stringValue", "'AXValue: 5.00'"); |
| successfullyParsed = true; |
| <script src="../../resources/js-test-post.js"></script> |