blob: 8072ae44be75acdc47f8f3282af96dc99e1a87ad [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/js-test.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>
</body>
</html>