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

Unified Diff: ui/accessibility/ax_node_position_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 | « ui/accessibility/ax_node_data.cc ('k') | ui/accessibility/ax_tree_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7b720acad849b347a433243e239d8385b49be6bb 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,
« no previous file with comments | « ui/accessibility/ax_node_data.cc ('k') | ui/accessibility/ax_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698