diff options
Diffstat (limited to 'views/controls/label_unittest.cc')
-rw-r--r-- | views/controls/label_unittest.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/views/controls/label_unittest.cc b/views/controls/label_unittest.cc index a7b2ac2..6d2ba91 100644 --- a/views/controls/label_unittest.cc +++ b/views/controls/label_unittest.cc @@ -5,7 +5,6 @@ #include "base/i18n/rtl.h" #include "base/utf_string_conversions.h" #include "testing/gtest/include/gtest/gtest.h" -#include "ui/base/accessibility/accessible_view_state.h" #include "ui/base/l10n/l10n_util.h" #include "ui/gfx/canvas.h" #include "views/border.h" @@ -160,11 +159,13 @@ TEST(LabelTest, Accessibility) { string16 test_text(ASCIIToUTF16("My special text.")); label.SetText(UTF16ToWideHack(test_text)); - ui::AccessibleViewState state; - label.GetAccessibleState(&state); - EXPECT_EQ(ui::AccessibilityTypes::ROLE_STATICTEXT, state.role); - EXPECT_EQ(test_text, state.name); - EXPECT_TRUE(ui::AccessibilityTypes::STATE_READONLY & state.state); + EXPECT_EQ(AccessibilityTypes::ROLE_STATICTEXT, label.GetAccessibleRole()); + + string16 name; + EXPECT_TRUE(label.GetAccessibleName(&name)); + EXPECT_EQ(test_text, name); + + EXPECT_TRUE(AccessibilityTypes::STATE_READONLY & label.GetAccessibleState()); } TEST(LabelTest, SingleLineSizing) { |