diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-10-01 01:31:47 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-10-01 11:21:19 +0000 |
commit | dc41255dc725dfa912326cc5d9e420bd66471c64 (patch) | |
tree | b05d753d7cff33f2a26761e7cb141ff78ea5dc29 | |
parent | 7ae4ac0d083b54da466ccd2f31860667e7751188 (diff) |
add test for tdf#101910
Change-Id: I3c0b98655a0a7a32e9022ce44a007d2303590e56
Reviewed-on: https://gerrit.libreoffice.org/29423
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r-- | sc/qa/unit/rangelst_test.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/qa/unit/rangelst_test.cxx b/sc/qa/unit/rangelst_test.cxx index b1b17121b452..1931a856175e 100644 --- a/sc/qa/unit/rangelst_test.cxx +++ b/sc/qa/unit/rangelst_test.cxx @@ -47,6 +47,7 @@ public: void testGetIntersectedRange(); void testUpdateReference_DeleteRow(); + void testUpdateReference_DeleteLastRow(); void testUpdateReference_DeleteCol(); void testInsertRow(); @@ -72,6 +73,7 @@ public: CPPUNIT_TEST(testJoin_Case1); CPPUNIT_TEST(testJoin_Case2); CPPUNIT_TEST(testUpdateReference_DeleteRow); + CPPUNIT_TEST(testUpdateReference_DeleteLastRow); CPPUNIT_TEST(testUpdateReference_DeleteCol); CPPUNIT_TEST(testGetIntersectedRange); CPPUNIT_TEST(testInsertRow); @@ -443,6 +445,13 @@ void Test::testUpdateReference_DeleteRow() CPPUNIT_ASSERT(aList2.empty()); } +void Test::testUpdateReference_DeleteLastRow() +{ + ScRangeList aList(ScRange(1,1,0,4,4,0)); + bool bUpdated = aList.UpdateReference(URM_INSDEL, m_pDoc, ScRange(0,4,0,MAXCOL,4,0), 0, -1, 0); + CPPUNIT_ASSERT(bUpdated); +} + void Test::testUpdateReference_DeleteCol() { ScRangeList aList(ScRange(1,1,0,4,4,0)); |