Index: LayoutTests/accessibility/dl-role.html |
diff --git a/LayoutTests/accessibility/dl-role.html b/LayoutTests/accessibility/dl-role.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dc127342c44bda59669a82eebdfb5165dbc60be3 |
--- /dev/null |
+++ b/LayoutTests/accessibility/dl-role.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<script src="../resources/js-test.js"></script> |
+<dl id="dlElem"> |
+ <dt id="dtElem">term</dt> |
+ <dd id="ddElem">definition</dd> |
+</dl> |
+ |
+<script> |
+description("This tests that AXRole for dl element is AXDescriptionList.") |
+ |
+if (window.accessibilityController) { |
+ var dlElement = accessibilityController.accessibleElementById("dlElem"); |
+ shouldBe("dlElement.role", "'AXRole: AXDescriptionList'"); |
+ |
+ var dtElement = accessibilityController.accessibleElementById("dtElem"); |
+ shouldBe("dtElement.role", "'AXRole: AXDescriptionListTerm'"); |
+ |
+ var ddElement = accessibilityController.accessibleElementById("ddElem"); |
+ shouldBe("ddElement.role", "'AXRole: AXDescriptionListDetail'"); |
+} |
+</script> |