| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <html> |
| <head> |
| <script src="../resources/js-test-pre.js"></script> |
| </head> |
| <body id="body"> |
| |
| <div role="img" aria-label="ASCII art of a helicopter" title="Incorrect text equivalent. When available, node should use aria-label instead of title."> |
| <div class="ascii"> |
| ======================== |
| ___][_____ |
| * __/ [___]\ |
| ***====___ \ |
| * \___________] |
| I I |
| ------------/ |
| </div> |
| </div> |
| |
| <p id="description"></p> |
| <div id="console"></div> |
| |
| <script> |
| |
| description("This tests that a non native image (one created through ARIA) does not cause an assert. Test passes if it does not crash in debug builds"); |
| |
| if (window.accessibilityController) { |
| |
| var body = document.getElementById("body"); |
| body.focus(); |
| var image = accessibilityController.focusedElement.childAtIndex(0); |
| var w = image.width; |
| var h = image.height; |
| |
| } |
| |
| </script> |
| |
| <script src="../resources/js-test-post.js"></script> |
| </body> |
| </html> |