[go: nahoru, domu]

blob: 1e87315ac11477d8501c91c77432e3e9bd3abdaa [file] [log] [blame]
<!DOCTYPE HTML>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<div class="container">
<input id="input1" aria-labelledby="list1">
<ul id="list1" aria-owns="list1_item3">
<li>A
<li>B
</ul>
<div role="listitem" id="list1_item3">C</div>
</div>
<script>
test(function(t) {
console.log('aaaaaaaaaaaaa');
var axInput1 = accessibilityController.accessibleElementById("input1");
console.log('aaaaaaaaaaaaa 2');
assert_equals(axInput1.name, "A B C");
}, "Aria-owns is considered in a name computation");
</script>