summaryrefslogtreecommitdiffstats
path: root/chrome/browser/accessibility/browser_accessibility_win_unittest.cc
diff options
context:
space:
mode:
authorctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-11 06:53:52 +0000
committerctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-11 06:53:52 +0000
commit5c74bfa3c1ccb2a9ff9f7c7c79675caf72223981 (patch)
tree279292055bba4a7b962969924776b0b25f0cf7ad /chrome/browser/accessibility/browser_accessibility_win_unittest.cc
parent0897a12393f6c2535f3840258b7b438ed1166adf (diff)
downloadchromium_src-5c74bfa3c1ccb2a9ff9f7c7c79675caf72223981.zip
chromium_src-5c74bfa3c1ccb2a9ff9f7c7c79675caf72223981.tar.gz
chromium_src-5c74bfa3c1ccb2a9ff9f7c7c79675caf72223981.tar.bz2
IAccessibleText::get_text must support special text offsets.
BUG=82224 TEST=unit_tests:BrowserAccessibilityTest.TestTextBoundaries Review URL: http://codereview.chromium.org/6995040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84948 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.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/accessibility/browser_accessibility_win_unittest.cc b/chrome/browser/accessibility/browser_accessibility_win_unittest.cc
index 4875130..e40d505 100644
--- a/chrome/browser/accessibility/browser_accessibility_win_unittest.cc
+++ b/chrome/browser/accessibility/browser_accessibility_win_unittest.cc
@@ -358,6 +358,10 @@ TEST_F(BrowserAccessibilityTest, TestTextBoundaries) {
ASSERT_EQ(text, string16(L"One two three"));
SysFreeString(text);
+ ASSERT_EQ(S_OK, text1_obj->get_text(0, IA2_TEXT_OFFSET_LENGTH, &text));
+ ASSERT_EQ(text, string16(L"One two three.\nFour five six."));
+ SysFreeString(text);
+
// Delete the manager and test that all BrowserAccessibility instances are
// deleted.
delete manager;