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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/listbox-focus.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: third_party/WebKit/LayoutTests/accessibility/listbox-focus.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/listbox-focus.html b/third_party/WebKit/LayoutTests/accessibility/listbox-focus.html
index c8977dceb0d5554e1fac08dbacc61dc9522c4902..d0b7d0db00bcc770cf1b2f4421f7ee2cc670bc38 100644
--- a/third_party/WebKit/LayoutTests/accessibility/listbox-focus.html
+++ b/third_party/WebKit/LayoutTests/accessibility/listbox-focus.html
@@ -17,7 +17,6 @@ async_test(function(t)
var gotCheckedStateChanged = false;
var gotSelectedChildrenChanged = false;
- var gotFocus = false;
window.setTimeout(function() {
var result = "";
@@ -30,16 +29,12 @@ async_test(function(t)
assert_equals(element.role, "AXRole: AXListBox");
gotSelectedChildrenChanged = true;
}
- if (notification == "Focus") {
- assert_equals(element.role, "AXRole: AXListBoxOption");
- gotFocus = true;
- }
- if (gotCheckedStateChanged && gotSelectedChildrenChanged && gotFocus) {
+ if (gotCheckedStateChanged && gotSelectedChildrenChanged) {
t.done();
}
}));
listbox.selectedIndex = 1;
}, 0);
-}, "menu list fires focus event on close");
+}, "menu list fires correct events when active index changes.");
</script>

Powered by Google App Engine
This is Rietveld 408576698