| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <html> |
| <head> |
| <script src="../resources/js-test-pre.js"></script> |
| </head> |
| <body id="body"> |
| |
| <div tabindex=0 id="slider" role="slider" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">slider</div> |
| |
| <p id="description"></p> |
| <div id="console"></div> |
| |
| <script> |
| |
| description("This tests that its possible to increment and decrement an aria slider and have the value updated correctly."); |
| |
| if (window.accessibilityController) { |
| |
| var slider = document.getElementById("slider"); |
| slider.focus(); |
| |
| slider = accessibilityController.focusedElement; |
| shouldBe("slider.intValue", "50"); |
| |
| slider.increment(); |
| // As of now, there's no specification designed to update the DOM after an AX call. |
| shouldBe("slider.intValue", "50"); |
| |
| slider.decrement(); |
| slider.decrement(); |
| // As of now, there's no specification designed to update the DOM after an AX call. |
| shouldBe("slider.intValue", "50"); |
| |
| } |
| |
| </script> |
| |
| <script src="../resources/js-test-post.js"></script> |
| </body> |
| </html> |