OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../resources/js-test.js"></script> |
| 3 <dl id="dlElem"> |
| 4 <dt id="dtElem">term</dt> |
| 5 <dd id="ddElem">definition</dd> |
| 6 </dl> |
| 7 |
| 8 <script> |
| 9 description("This tests that AXRole for dl element is AXDescriptionList.") |
| 10 |
| 11 if (window.accessibilityController) { |
| 12 var dlElement = accessibilityController.accessibleElementById("dlElem"); |
| 13 shouldBe("dlElement.role", "'AXRole: AXDescriptionList'"); |
| 14 |
| 15 var dtElement = accessibilityController.accessibleElementById("dtElem"); |
| 16 shouldBe("dtElement.role", "'AXRole: AXDescriptionListTerm'"); |
| 17 |
| 18 var ddElement = accessibilityController.accessibleElementById("ddElem"); |
| 19 shouldBe("ddElement.role", "'AXRole: AXDescriptionListDetail'"); |
| 20 } |
| 21 </script> |
OLD | NEW |