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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/listbox-focus.html

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

Powered by Google App Engine
This is Rietveld 408576698