| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../resources/js-test-pre.js"></script> |
| <div id="spinbutton" role="spinbutton" aria-required="true">spinner</div> |
| description("This test ensures that an ARIA spin button will not crash because it's confused with a regular spin button."); |
| if (window.accessibilityController) { |
| var spinbutton = accessibilityController.accessibleElementById("spinbutton"); |
| shouldBe("spinbutton.childrenCount", "0"); |
| var incrementButton = spinbutton.uiElementAttributeValue('AXIncrementButton'); |
| shouldBeTrue("incrementButton == null || !incrementButton.isValid"); |
| <script src="../../resources/js-test-post.js"></script> |