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

Unified Diff: content/test/data/accessibility/event/menulist-collapse.html

Issue 2027683002: Reland of Uses the activedescendant_changed event received from Blink to fire the right focus event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: content/test/data/accessibility/event/menulist-collapse.html
diff --git a/content/test/data/accessibility/event/menulist-collapse.html b/content/test/data/accessibility/event/menulist-collapse.html
new file mode 100644
index 0000000000000000000000000000000000000000..7edd863c0f6cf7cd9962641c2cd39f363156d58a
--- /dev/null
+++ b/content/test/data/accessibility/event/menulist-collapse.html
@@ -0,0 +1,20 @@
+<!--
+@MAC-DENY:AXLayoutComplete*
+-->
+<!DOCTYPE html>
+<html>
+<body>
+<select>
+ <option selected>Apple</option>
+ <option>Orange</option>
+ <option>Banana</option>
+</select>
+<script>
+ document.querySelector('select').focus();
+ function go() {
+ // Setting |selectedIndex| to -1 unselects any selected item.
+ document.querySelector('select').selectedIndex = -1;
+ }
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698