[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - sc/qa
Dennis Francis (via logerrit)
logerrit at kemper.freedesktop.org
Tue May 25 18:43:43 UTC 2021
sc/qa/unit/tiledrendering/tiledrendering.cxx | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
New commits:
commit ad22776f5eb7c0ee313122bab1f43962d303a06c
Author: Dennis Francis <dennis.francis at collabora.com>
AuthorDate: Mon May 10 20:51:12 2021 +0530
Commit: Dennis Francis <dennis.francis at collabora.com>
CommitDate: Tue May 25 20:41:19 2021 +0200
tdf#142214: unittest:test autocomplete through numeric block
Change-Id: I4a44fb85dfdfdd9aa5f18801e4e2b215ee188e45
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115346
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Dennis Francis <dennis.francis at collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115551
Tested-by: Jenkins
(cherry picked from commit 17d4221c047eac47e26465ddc72d13fb89284f57)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116086
diff --git a/sc/qa/unit/tiledrendering/tiledrendering.cxx b/sc/qa/unit/tiledrendering/tiledrendering.cxx
index 7b7e480ec6b2..80e0f7b2e2f0 100644
--- a/sc/qa/unit/tiledrendering/tiledrendering.cxx
+++ b/sc/qa/unit/tiledrendering/tiledrendering.cxx
@@ -2469,23 +2469,24 @@ void ScTiledRenderingTest::testAutoInputStringBlock()
ScFieldEditEngine& rEE = pDoc->GetEditEngine();
rEE.SetText("XYZ");
pDoc->SetEditText(ScAddress(0, 5, 0), rEE.CreateTextObject()); // A6
- pDoc->SetString(ScAddress(0, 6, 0), "ZZZ"); // A7
+ pDoc->SetValue(ScAddress(0, 6, 0), 123);
+ pDoc->SetString(ScAddress(0, 7, 0), "ZZZ"); // A8
ScAddress aA1(0, 0, 0);
lcl_typeCharsInCell("X", aA1.Col(), aA1.Row(), pView, pModelObj); // Type 'X' in A1
CPPUNIT_ASSERT_EQUAL_MESSAGE("A1 should not autocomplete", OUString("X"), pDoc->GetString(aA1));
- ScAddress aA3(0, 2, 0); // Adjacent to the string "superblock" A4:A7
+ ScAddress aA3(0, 2, 0); // Adjacent to the string "superblock" A4:A8
lcl_typeCharsInCell("X", aA3.Col(), aA3.Row(), pView, pModelObj); // Type 'X' in A3
CPPUNIT_ASSERT_EQUAL_MESSAGE("A3 should autocomplete", OUString("XYZ"), pDoc->GetString(aA3));
- ScAddress aA7(0, 6, 0); // Adjacent to the string "superblock" A4:A7
- lcl_typeCharsInCell("X", aA7.Col(), aA7.Row(), pView, pModelObj); // Type 'X' in A7
- CPPUNIT_ASSERT_EQUAL_MESSAGE("A7 should autocomplete", OUString("XYZ"), pDoc->GetString(aA7));
+ ScAddress aA9(0, 8, 0); // Adjacent to the string "superblock" A4:A8
+ lcl_typeCharsInCell("X", aA9.Col(), aA9.Row(), pView, pModelObj); // Type 'X' in A9
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("A9 should autocomplete", OUString("XYZ"), pDoc->GetString(aA9));
- ScAddress aA10(0, 9, 0);
- lcl_typeCharsInCell("X", aA10.Col(), aA10.Row(), pView, pModelObj); // Type 'X' in A10
- CPPUNIT_ASSERT_EQUAL_MESSAGE("A10 should not autocomplete", OUString("X"), pDoc->GetString(aA10));
+ ScAddress aA11(0, 10, 0);
+ lcl_typeCharsInCell("X", aA11.Col(), aA11.Row(), pView, pModelObj); // Type 'X' in A11
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("A11 should not autocomplete", OUString("X"), pDoc->GetString(aA11));
}
void ScTiledRenderingTest::testAutoInputExactMatch()
More information about the Libreoffice-commits
mailing list