OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <script src="../resources/testharness.js"></script> |
| 3 <script src="../resources/testharnessreport.js"></script> |
| 4 <style> |
| 5 li { list-style-type: none; } |
| 6 </style> |
| 7 <ul role="tree"> |
| 8 <li role="treeitem" id="parent1"> |
| 9 Parent1 |
| 10 <ul role="group" id="group1"> |
| 11 <li role="treeitem" id="treeitem1"> |
| 12 Child1 |
| 13 </li> |
| 14 </ul> |
| 15 </li> |
| 16 </ul> |
| 17 |
| 18 <div role="tree"> |
| 19 <span role="treeitem" id="parent2"> |
| 20 Parent2 |
| 21 <span role="group"> |
| 22 <span role="treeitem"> |
| 23 Child2 |
| 24 </span> |
| 25 </span> |
| 26 </span> |
| 27 </div> |
| 28 |
| 29 |
| 30 <script> |
| 31 test(function(t) { |
| 32 var axParent1 = accessibilityController.accessibleElementById("parent1"); |
| 33 assert_equals(axParent1.name.trim(), "Parent1"); |
| 34 }, "Accessible name does not include display:block descendants with nameFrom:aut
hor"); |
| 35 |
| 36 test(function(t) { |
| 37 var axParent2 = accessibilityController.accessibleElementById("parent2"); |
| 38 assert_equals(axParent2.name.trim(), "Parent2"); |
| 39 }, "Accessible name does not include display:inline descendants with nameFrom:au
thor"); |
| 40 </script> |
OLD | NEW |