summaryrefslogtreecommitdiffstats
path: root/chrome/browser/accessibility/browser_accessibility_win_unittest.cc
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-08 16:38:32 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-08 16:38:32 +0000
commit1a0f04beab1294fed417320fb53f27e9e8be1df5 (patch)
tree7b0c80696de85275f1cfb098a42119299ce334d1 /chrome/browser/accessibility/browser_accessibility_win_unittest.cc
parent7b7ff92a4b17a862df314a24001f4a4c0006eba5 (diff)
downloadchromium_src-1a0f04beab1294fed417320fb53f27e9e8be1df5.zip
chromium_src-1a0f04beab1294fed417320fb53f27e9e8be1df5.tar.gz
chromium_src-1a0f04beab1294fed417320fb53f27e9e8be1df5.tar.bz2
Report accessible static text content in the name rather than the value.
Fix the role for a list item, which WebKit categorizes as a GROUP. BUG=none TEST=updated existing test, plus manual testing with screen readers. Review URL: http://codereview.chromium.org/6250093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74124 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/accessibility/browser_accessibility_win_unittest.cc')
-rw-r--r--chrome/browser/accessibility/browser_accessibility_win_unittest.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/accessibility/browser_accessibility_win_unittest.cc b/chrome/browser/accessibility/browser_accessibility_win_unittest.cc
index 45b7f30..fe5fa04 100644
--- a/chrome/browser/accessibility/browser_accessibility_win_unittest.cc
+++ b/chrome/browser/accessibility/browser_accessibility_win_unittest.cc
@@ -146,7 +146,7 @@ TEST_F(BrowserAccessibilityTest, TestChildrenChange) {
WebAccessibility text;
text.id = 2;
text.role = WebAccessibility::ROLE_STATIC_TEXT;
- text.value = L"old text";
+ text.name = L"old text";
text.state = 0;
WebAccessibility root;
@@ -177,16 +177,16 @@ TEST_F(BrowserAccessibilityTest, TestChildrenChange) {
hr = text_dispatch.QueryInterface(text_accessible.Receive());
ASSERT_EQ(S_OK, hr);
- CComBSTR value;
- hr = text_accessible->get_accValue(CreateI4Variant(CHILDID_SELF), &value);
+ CComBSTR name;
+ hr = text_accessible->get_accName(CreateI4Variant(CHILDID_SELF), &name);
ASSERT_EQ(S_OK, hr);
- EXPECT_STREQ(L"old text", value.m_str);
+ EXPECT_STREQ(L"old text", name.m_str);
text_dispatch.Release();
text_accessible.Release();
// Notify the BrowserAccessibilityManager that the text child has changed.
- text.value = L"new text";
+ text.name = L"new text";
ViewHostMsg_AccessibilityNotification_Params param;
param.notification_type =
ViewHostMsg_AccessibilityNotification_Params::
@@ -206,9 +206,9 @@ TEST_F(BrowserAccessibilityTest, TestChildrenChange) {
hr = text_dispatch.QueryInterface(text_accessible.Receive());
ASSERT_EQ(S_OK, hr);
- hr = text_accessible->get_accValue(CreateI4Variant(CHILDID_SELF), &value);
+ hr = text_accessible->get_accName(CreateI4Variant(CHILDID_SELF), &name);
ASSERT_EQ(S_OK, hr);
- EXPECT_STREQ(L"new text", value.m_str);
+ EXPECT_STREQ(L"new text", name.m_str);
text_dispatch.Release();
text_accessible.Release();