diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-04-26 20:07:20 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-26 20:07:20 +0000 |
commit | 051e837e08f52251de5932d90268d504060d12f1 (patch) | |
tree | 7bfadc142b885fb2651fb566841e10a8c3044706 /xfa/fde/cfde_texteditengine_unittest.cpp | |
parent | ea3a2529a7aa0199b385b7caa2e465c124eac8aa (diff) | |
download | pdfium-051e837e08f52251de5932d90268d504060d12f1.tar.xz |
Fix caret moving to next line upon click on line break in XFA edit.
Bug: chromium:836361
Change-Id: I40739a21a60610bd5ab0143629f87562ba834a0d
Reviewed-on: https://pdfium-review.googlesource.com/31410
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_texteditengine_unittest.cpp')
-rw-r--r-- | xfa/fde/cfde_texteditengine_unittest.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xfa/fde/cfde_texteditengine_unittest.cpp b/xfa/fde/cfde_texteditengine_unittest.cpp index ab8e64078b..123d16ce4b 100644 --- a/xfa/fde/cfde_texteditengine_unittest.cpp +++ b/xfa/fde/cfde_texteditengine_unittest.cpp @@ -445,10 +445,7 @@ TEST_F(CFDE_TextEditEngineTest, GetIndexForPointLineBreaks) { engine()->SetFontSize(10.0f); engine()->Insert(0, L"Hello\nWorld"); EXPECT_EQ(0U, engine()->GetIndexForPoint({0.0f, 0.0f})); - - // TODO(hnakashima): Should be 5U, caret is moving to next line. - EXPECT_EQ(6U, engine()->GetIndexForPoint({999999.0f, 0.0f})); - + EXPECT_EQ(5U, engine()->GetIndexForPoint({999999.0f, 0.0f})); EXPECT_EQ(6U, engine()->GetIndexForPoint({0.0f, 10.0f})); EXPECT_EQ(11U, engine()->GetIndexForPoint({999999.0f, 9999999.0f})); } |