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