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

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

Issue 1899823002: 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: Fixed menu-list-open Layout test. 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-expand.html
diff --git a/content/test/data/accessibility/event/menulist-expand.html b/content/test/data/accessibility/event/menulist-expand.html
new file mode 100644
index 0000000000000000000000000000000000000000..057adc6551aca3f9235376bb71500c3f96b06cbc
--- /dev/null
+++ b/content/test/data/accessibility/event/menulist-expand.html
@@ -0,0 +1,22 @@
+<!--
+@MAC-DENY:AXLayoutComplete*
+-->
+<!DOCTYPE html>
+<html>
+<body>
+<select>
+ <option>Apple</option>
+ <option>Orange</option>
+ <option>Banana</option>
+</select>
+<script>
+ document.querySelector('select').focus();
+ function go() {
+ var comboBox = document.querySelector('select');
+ var clickEvent = document.createEvent('MouseEvents');
+ clickEvent.initMouseEvent('mousedown', true, true, window);
+ comboBox.dispatchEvent(clickEvent);
+ }
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698