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

Unified Diff: ui/views/widget/native_widget_mac_unittest.mm

Issue 2119413004: a11y: Exclude children of nested keyboard accessible controls from a11y tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Before revert of cross-platform ignored a11y elements. Created 4 years, 2 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
« no previous file with comments | « ui/views/widget/native_widget_mac_accessibility_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_mac_unittest.mm
diff --git a/ui/views/widget/native_widget_mac_unittest.mm b/ui/views/widget/native_widget_mac_unittest.mm
index 0dec9ded50095c597488f9b4f621fe55f2e16cf5..895c1283c9adee9ef4569fc3cf2751472ad15aea 100644
--- a/ui/views/widget/native_widget_mac_unittest.mm
+++ b/ui/views/widget/native_widget_mac_unittest.mm
@@ -652,6 +652,7 @@ TEST_F(NativeWidgetMacTest, AccessibilityIntegration) {
const base::string16 test_string = base::ASCIIToUTF16("Green");
views::Label* label = new views::Label(test_string);
label->SetBounds(0, 0, 100, 100);
+ label->SetFocusBehavior(ClientView::FocusBehavior::ACCESSIBLE_ONLY);
widget->GetContentsView()->AddChildView(label);
widget->Show();
@@ -661,7 +662,7 @@ TEST_F(NativeWidgetMacTest, AccessibilityIntegration) {
id hit = [widget->GetNativeWindow() accessibilityHitTest:midpoint];
id title = [hit accessibilityAttributeValue:NSAccessibilityTitleAttribute];
- EXPECT_NSEQ(title, @"Green");
+ EXPECT_NSEQ(@"Green", title);
widget->CloseNow();
}
« no previous file with comments | « ui/views/widget/native_widget_mac_accessibility_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698