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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/name-calc-group-inside-treeitem.html

Issue 2867073003: Name calculation should not include nameFrom:author descendants. (Closed)
Patch Set: Rebase Created 3 years, 7 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
Index: third_party/WebKit/LayoutTests/accessibility/name-calc-group-inside-treeitem.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/name-calc-group-inside-treeitem.html b/third_party/WebKit/LayoutTests/accessibility/name-calc-group-inside-treeitem.html
new file mode 100644
index 0000000000000000000000000000000000000000..da92e5c359912deeedfe51367f7b3f5770c3f59c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/accessibility/name-calc-group-inside-treeitem.html
@@ -0,0 +1,40 @@
+<!DOCTYPE HTML>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<style>
+ li { list-style-type: none; }
+</style>
+<ul role="tree">
+ <li role="treeitem" id="parent1">
+ Parent1
+ <ul role="group" id="group1">
+ <li role="treeitem" id="treeitem1">
+ Child1
+ </li>
+ </ul>
+ </li>
+</ul>
+
+<div role="tree">
+ <span role="treeitem" id="parent2">
+ Parent2
+ <span role="group">
+ <span role="treeitem">
+ Child2
+ </span>
+ </span>
+ </span>
+</div>
+
+
+<script>
+test(function(t) {
+ var axParent1 = accessibilityController.accessibleElementById("parent1");
+ assert_equals(axParent1.name.trim(), "Parent1");
+}, "Accessible name does not include display:block descendants with nameFrom:author");
+
+test(function(t) {
+ var axParent2 = accessibilityController.accessibleElementById("parent2");
+ assert_equals(axParent2.name.trim(), "Parent2");
+}, "Accessible name does not include display:inline descendants with nameFrom:author");
+</script>

Powered by Google App Engine
This is Rietveld 408576698