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

Unified Diff: content/browser/accessibility/accessibility_win_browsertest.cc

Issue 1951353002: Fixed a bug that assumed that static text object span only one line (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added back legasy logic for handling input and textarea elements. Created 4 years, 7 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 | « no previous file | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/accessibility_win_browsertest.cc
diff --git a/content/browser/accessibility/accessibility_win_browsertest.cc b/content/browser/accessibility/accessibility_win_browsertest.cc
index 28171d7895d8bacaaa2bb3f46085718cefeeeccb..f79c89a37cc65b36c756bad26a126291a1df6997 100644
--- a/content/browser/accessibility/accessibility_win_browsertest.cc
+++ b/content/browser/accessibility/accessibility_win_browsertest.cc
@@ -1622,7 +1622,9 @@ IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest,
L"Game theory is \"the study of \xFFFC of conflict and\n");
}
- for (LONG i = newline_offset + 1; i < n_characters; ++i) {
+ // For line boundaries, IA2 Spec allows for the offset to be equal to the
+ // text's length.
+ for (LONG i = newline_offset + 1; i <= n_characters; ++i) {
CheckTextAtOffset(
paragraph_text, i, IA2_TEXT_BOUNDARY_LINE, newline_offset + 1,
n_characters,
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698