Index: content/test/data/accessibility/event/aria-combo-box-expand.html |
diff --git a/content/test/data/accessibility/event/aria-combo-box-expand.html b/content/test/data/accessibility/event/aria-combo-box-expand.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..894432f4988a10e65fbd9aa94eff7d48817f7f48 |
--- /dev/null |
+++ b/content/test/data/accessibility/event/aria-combo-box-expand.html |
@@ -0,0 +1,23 @@ |
+<!-- |
+@MAC-DENY:AXLayoutComplete* |
+--> |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<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> |
+ document.querySelector('input').focus(); |
+ function go() { |
+ var combo_box = document.querySelector('input'); |
+ combo_box.setAttribute('aria-expanded', 'true'); |
+ combo_box.setAttribute('aria-activedescendant', 'option1'); |
+ } |
+</script> |
+</body> |
+</html> |