| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test-pre.js"></script> |
| function handleClick(event) { |
| debug("click event " + event |
| + " for element " + event.target.nodeName |
| + " with id " + event.target.id); |
| <p>This is a very long, long, long, long, line that contains a link that expands multiple lines: <a id="multiline-link" onclick="return handleClick(event);" href="#">Apple<br><br>Inc.</a> is based in Cupertino California. |
| <p>A singleline link: <a id="singleline-link" onclick="return handleClick(event);" href="#">Apple Inc.</a> is based in Cupertino California. |
| description("This test ensures that a link is activated with a simulated accessibility press regardless whether its bounding rect encompasses points outside the link. The multiline-link is an example of a bounding rect that contains points that are not part of the link, in particular the middle point of the rect."); |
| if (window.accessibilityController) { |
| window.jsTestIsAsync = true; |
| var link = accessibilityController.accessibleElementById("multiline-link"); |
| shouldBecomeEqual("clicked", "true", function() { |
| link = accessibilityController.accessibleElementById("singleline-link"); |
| shouldBecomeEqual("clicked", "true", function() { |
| <script src="../resources/js-test-post.js"></script> |