[Libreoffice-commits] core.git: sc/qa

Eike Rathke erack at redhat.com
Sat Feb 21 02:54:56 PST 2015


 sc/qa/unit/ucalc.cxx |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

New commits:
commit 3f71a35ac72d604519a3c43a1c1cc44b3e04b420
Author: Eike Rathke <erack at redhat.com>
Date:   Sat Feb 21 02:52:15 2015 +0100

    use a slightly more complicated pattern distribution to check, tdf#89436
    
    Change-Id: Id42d89ac529bc3d148e5ebc5bcaa11b01fb188ff

diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 1d385f3..535ca0e 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -1228,10 +1228,14 @@ void Test::testHorizontalAttrIterator()
 {
     m_pDoc->InsertTab(0, "Test");
 
-    // Set the background color of B2:C3 to blue
+    // Set the background color of B2:C3,D2,E3,C4:D4,B5:D5 to blue
     ScPatternAttr aCellBackColor(m_pDoc->GetPool());
     aCellBackColor.GetItemSet().Put(SvxBrushItem(COL_BLUE, ATTR_BACKGROUND));
     m_pDoc->ApplyPatternAreaTab(1, 1, 2, 2, 0, aCellBackColor);
+    m_pDoc->ApplyPatternAreaTab(3, 1, 3, 1, 0, aCellBackColor);
+    m_pDoc->ApplyPatternAreaTab(4, 2, 4, 2, 0, aCellBackColor);
+    m_pDoc->ApplyPatternAreaTab(2, 3, 3, 3, 0, aCellBackColor);
+    m_pDoc->ApplyPatternAreaTab(1, 4, 4, 4, 0, aCellBackColor);
 
     // some numeric data
     for (SCCOL i = 1; i <= 4; ++i)
@@ -1239,10 +1243,10 @@ void Test::testHorizontalAttrIterator()
             m_pDoc->SetValue(ScAddress(i,j,0), i*10+j);
 
     {
-        const int aChecks[][3] = { {1, 2, 1}, {1, 2, 2} };
+        const int aChecks[][3] = { {1, 3, 1}, {1, 2, 2}, {4, 4, 2}, {2, 3, 3}, {1, 4, 4} };
         size_t nCheckLen = SAL_N_ELEMENTS(aChecks);
 
-        ScHorizontalAttrIterator aIter(m_pDoc, 0, 0, 0, 3, 3);
+        ScHorizontalAttrIterator aIter(m_pDoc, 0, 0, 0, 5, 5);
         SCCOL nCol1, nCol2;
         SCROW nRow;
         size_t nCheckPos = 0;


More information about the Libreoffice-commits mailing list