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

Unified Diff: ui/accessibility/ax_node_position_unittest.cc

Issue 2694903010: AX checked state changes (Closed)
Patch Set: Fix compiler error Created 3 years, 10 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: ui/accessibility/ax_node_position_unittest.cc
diff --git a/ui/accessibility/ax_node_position_unittest.cc b/ui/accessibility/ax_node_position_unittest.cc
index 253967c1fde037ae069ccbee519b140f6e23372a..47c198a2915ad50213fbf7ff65d5cd2df2fcac44 100644
--- a/ui/accessibility/ax_node_position_unittest.cc
+++ b/ui/accessibility/ax_node_position_unittest.cc
@@ -130,7 +130,8 @@ void AXPositionTest::SetUp() {
root_.child_ids.push_back(button_.id);
check_box_.role = AX_ROLE_CHECK_BOX;
- check_box_.state = 1 << AX_STATE_CHECKED;
+ check_box_.AddIntAttribute(ui::AX_ATTR_CHECKED_STATE,
+ ui::AX_CHECKED_STATE_TRUE);
check_box_.SetName("Check box");
check_box_.location = gfx::RectF(20, 50, 200, 30);
check_box_.AddIntListAttribute(AX_ATTR_WORD_STARTS,

Powered by Google App Engine
This is Rietveld 408576698