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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/aria-combobox-activedescendant.html

Issue 2893683002: Selection follows focus/activedescendant in single selection containers (Closed)
Patch Set: Last test to fix we hope 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/aria-combobox-activedescendant.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/aria-combobox-activedescendant.html b/third_party/WebKit/LayoutTests/accessibility/aria-combobox-activedescendant.html
new file mode 100644
index 0000000000000000000000000000000000000000..a9af7472f798170a97a1b051fccc9b6a6f0d92e8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/accessibility/aria-combobox-activedescendant.html
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+
+<input role="combobox" type="search" aria-expanded="false" aria-haspopup="true"
+ aria-autocomplete="list" aria-activedescendant="" aria-owns="list">
+<ul id="list" role="listbox">
+<li id="option1" role="option">Apple</li>
+<li id="option2" role="option">Orange</li>
+<li id="option3" role="option">Banana</li>
+</ul>
+
+<script>
+function axElementById(id) {
+ return accessibilityController.accessibleElementById(id);
+}
+
+test(function(t) {
+ document.querySelector('input').focus();
+ var combo_box = document.querySelector('input');
+ combo_box.setAttribute('aria-expanded', 'true');
+ combo_box.setAttribute('aria-activedescendant', 'option1');
+
+ var option1 = axElementById('option1');
+ assert_equals(option1.isFocusable, true);
+}, "An option with an activedescendant aria-owns parent is focusable");
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698