blob: 1fbcb9ed3e70b3fdc897c90e1fd08399b1a41b53 [file] [log] [blame]
<!DOCTYPE HTML>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<style>
.hideAllContainers .container {
display: none;
}
</style>
<div class="container">
<div tabIndex=0 role="link" id="link1">
I
<img src="hidden.jpg" alt="do not" role="presentation" />
like ice cream.
</div>
</div>
<script>
test(function(t) {
var axLink1 = accessibilityController.accessibleElementById("link1");
assert_equals(axLink1.name, "I like ice cream.");
}, "Presentational element ignored in name calculation..");
</script>
<script>
if (window.testRunner)
document.body.className = "hideAllContainers";
</script>