Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: LayoutTests/accessibility/dl-role.html

Issue 623693002: Add LayoutTest for AX Role of dl element (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/accessibility/dl-role-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/accessibility/dl-role-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698