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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/menu-list-open.html

Issue 2025923002: 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: third_party/WebKit/LayoutTests/accessibility/menu-list-open.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/menu-list-open.html b/third_party/WebKit/LayoutTests/accessibility/menu-list-open.html
index 15ce9c86e42df67f563e940172a76f1c63a8d263..aa5680a4c3fee9bb0923b63aa9bc214c5371bd67 100644
--- a/third_party/WebKit/LayoutTests/accessibility/menu-list-open.html
+++ b/third_party/WebKit/LayoutTests/accessibility/menu-list-open.html
@@ -13,18 +13,25 @@
menulist.selectedIndex = 0;
menulist.focus();
- var result = "";
+ var eventCount = 0;
accessibilityController.addNotificationListener(function listener(element, notification) {
- if (notification == "Focus") {
+ if (notification == "ActiveDescendantChanged") {
+ assert_equals(element.role, "AXRole: AXMenuListPopup");
+ ++eventCount;
+ }
+ if (notification == "MenuListItemSelected") {
assert_equals(element.role, "AXRole: AXMenuListOption");
assert_equals(element.name, "Alicia");
+ ++eventCount;
+ }
+
+ if (eventCount == 2)
t.done();
- }
});
var axMenuList = accessibilityController.accessibleElementById("menulist");
eventSender.mouseMoveTo(axMenuList.x + 10, axMenuList.y + 10);
eventSender.mouseDown();
eventSender.mouseUp();
-}, "menu list fires focus event on open");
+}, "menu list fires correct events on open");
</script>

Powered by Google App Engine
This is Rietveld 408576698