summaryrefslogtreecommitdiff
path: root/sc/qa/unit
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-02-21 02:52:15 +0100
committerEike Rathke <erack@redhat.com>2015-02-21 11:54:00 +0100
commit3f71a35ac72d604519a3c43a1c1cc44b3e04b420 (patch)
treead5c4a2183a78ca08f8692b99216e72f96a28d24 /sc/qa/unit
parent8ba18fcf0cdaab2b2bec66d15daa4a9c33fb9fff (diff)
use a slightly more complicated pattern distribution to check, tdf#89436
Change-Id: Id42d89ac529bc3d148e5ebc5bcaa11b01fb188ff
Diffstat (limited to 'sc/qa/unit')
-rw-r--r--sc/qa/unit/ucalc.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 1d385f37dfc8..535ca0ecf37d 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;