| <script src="../resources/js-test-pre.js"></script> |
| aria-labelledby="idRed"></div> |
| description("This test verifies that the increment/decrement actions post keyboard events that are correct for LTR and orientation."); |
| function handleKeyDown(event) { |
| debug("Keycode received: identifier: " + event.keyIdentifier + " key name: " + event.key + " key code: " + event.keyCode); |
| if (window.accessibilityController) { |
| window.jsTestIsAsync = true; |
| document.getElementById("slider").addEventListener('keydown', handleKeyDown); |
| // Get the parent element. |
| var axSlider = accessibilityController.accessibleElementById("slider"); |
| debug("Increment/Decrement - LTR"); |
| debug("Increment/Decrement - RTL"); |
| window.internals.setUserInterfaceLayoutDirection("RTL"); |
| function incrementDecrement() { |
| debug("Horizontal orientation"); |
| document.getElementById("slider").setAttribute("aria-orientation", "horizontal"); |
| debug("Vertical orientation"); |
| document.getElementById("slider").setAttribute("aria-orientation", "vertical"); |
| <script src="../resources/js-test-post.js"></script> |