sc/qa/unit/tiledrendering/tiledrendering.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 305f0c9b974d480570cbd994711ddc3b8d83b5a8
Author:     Tamás Zolnai <tamas.zol...@collabora.com>
AuthorDate: Fri Sep 27 19:09:12 2019 +0200
Commit:     Tamás Zolnai <tamas.zol...@collabora.com>
CommitDate: Sat Sep 28 03:29:46 2019 +0200

    sc lok: Test also the invalidation rectangle in case of row/column insertion
    
    Reviewed-on: https://gerrit.libreoffice.org/79488
    Tested-by: Jenkins
    Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com>
    (cherry picked from commit d877c232c0d63fd509fa8bf9ca433481dfb2b126)
    Reviewed-on: https://gerrit.libreoffice.org/79614
    Tested-by: Tamás Zolnai <tamas.zol...@collabora.com>
    
    Change-Id: I5dffc0521ae7ef3ddd47574a85457ddcec2a0566
    Reviewed-on: https://gerrit.libreoffice.org/79757
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com>

diff --git a/sc/qa/unit/tiledrendering/tiledrendering.cxx 
b/sc/qa/unit/tiledrendering/tiledrendering.cxx
index c9405934a9c9..db524665e86c 100644
--- a/sc/qa/unit/tiledrendering/tiledrendering.cxx
+++ b/sc/qa/unit/tiledrendering/tiledrendering.cxx
@@ -1037,9 +1037,11 @@ void ScTiledRenderingTest::testInvalidateOnInserRowCol()
 
     // insert row
     aView.m_bInvalidateTiles = false;
+    aView.m_aInvalidation = tools::Rectangle();
     comphelper::dispatchCommand(".uno:InsertRows", aArgs);
     Scheduler::ProcessEventsToIdle();
     CPPUNIT_ASSERT(aView.m_bInvalidateTiles);
+    CPPUNIT_ASSERT_EQUAL(tools::Rectangle(-75, 50985, 32212230, 63990), 
aView.m_aInvalidation);
 
     // move on the right
     for (int i = 0; i < 200; ++i)
@@ -1051,9 +1053,11 @@ void ScTiledRenderingTest::testInvalidateOnInserRowCol()
 
     // insert column
     aView.m_bInvalidateTiles = false;
+    aView.m_aInvalidation = tools::Rectangle();
     comphelper::dispatchCommand(".uno:InsertColumns", aArgs);
     Scheduler::ProcessEventsToIdle();
     CPPUNIT_ASSERT(aView.m_bInvalidateTiles);
+    CPPUNIT_ASSERT_EQUAL(tools::Rectangle(253650, -15, 32212230, 63990), 
aView.m_aInvalidation);
 }
 
 void ScTiledRenderingTest::testCommentCallback()
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to