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

Unified Diff: ash/system/ime_menu/ime_menu_tray_unittest.cc

Issue 2694903010: AX checked state changes (Closed)
Patch Set: git cl try Created 3 years, 8 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 | « ash/system/ime_menu/ime_list_view.cc ('k') | ash/system/tray/hover_highlight_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/ime_menu/ime_menu_tray_unittest.cc
diff --git a/ash/system/ime_menu/ime_menu_tray_unittest.cc b/ash/system/ime_menu/ime_menu_tray_unittest.cc
index 87f14489c451f19f06cf450cddbe86efc26547f7..5de04e8c5a83ab651b321706950b3c214cb76f89 100644
--- a/ash/system/ime_menu/ime_menu_tray_unittest.cc
+++ b/ash/system/ime_menu/ime_menu_tray_unittest.cc
@@ -72,7 +72,9 @@ class ImeMenuTrayTest : public test::AshTestBase {
ui::AXNodeData node_data;
node_data.state = 0;
ime.first->GetAccessibleNodeData(&node_data);
- if (node_data.HasStateFlag(ui::AX_STATE_CHECKED)) {
+ const auto checked_state = static_cast<ui::AXCheckedState>(
+ node_data.GetIntAttribute(ui::AX_ATTR_CHECKED_STATE));
+ if (checked_state == ui::AX_CHECKED_STATE_TRUE) {
if (ime.second != expected_current_ime.id)
return false;
}
« no previous file with comments | « ash/system/ime_menu/ime_list_view.cc ('k') | ash/system/tray/hover_highlight_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698