| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../resources/js-test-pre.js"></script> |
| <div id="group" style="overflow: scroll; width:100px; height:100px;"> |
| <button id="button">button</button> |
| description("This tests that the scrollToMakeVisible accessibility action works as expected on the Mac."); |
| if (window.accessibilityController) { |
| var button = accessibilityController.accessibleElementById("button"); |
| button.scrollToMakeVisible(); |
| var newButtonX = button.x; |
| var newButtonY = button.y; |
| debug("Scroll to make visible is performed. The X position should be the same, but the Y position should have changed."); |
| shouldBeTrue("newButtonX == buttonX"); |
| shouldBeTrue("newButtonY > buttonY"); |
| document.getElementById("group").style.visibility = "hidden"; |
| <script src="../../resources/js-test-post.js"></script> |