Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yaakovschectman committed Apr 4, 2023
1 parent c9c9fba commit fa5f1dc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5117,6 +5117,7 @@ TEST_F(AXPlatformNodeTextRangeProviderTest, TestITextRangeProviderFindText) {
fml::icu::InitializeICU(icudtl_path);
}

// \xC3\xA9 are the UTF8 bytes for codepoint 0xE9 - accented lowercase e.
Init(BuildTextDocument({"some text", "more text", "resum\xC3\xA9"},
false /* build_word_boundaries_offsets */,
true /* place_text_on_one_line */));
Expand All @@ -5142,7 +5143,9 @@ TEST_F(AXPlatformNodeTextRangeProviderTest, TestITextRangeProviderFindText) {
EXPECT_UIA_FIND_TEXT(range, L"more text", false, owner);
EXPECT_UIA_FIND_TEXT(range, L"MoRe TeXt", true, owner);
EXPECT_UIA_FIND_TEXT(range, L"more", false, owner);
// Accented lowercase e.
EXPECT_UIA_FIND_TEXT(range, L"resum\xE9", false, owner);
// Accented uppercase e.
EXPECT_UIA_FIND_TEXT(range, L"resum\xC9", true, owner);
EXPECT_UIA_FIND_TEXT(range, L"resume", true, owner);
EXPECT_UIA_FIND_TEXT(range, L"resumE", true, owner);
Expand Down

0 comments on commit fa5f1dc

Please sign in to comment.