summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-03-26 16:38:18 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-03-26 16:59:21 +0100
commit59003139bd336dc4a85d537c9befe3204638d476 (patch)
treeb11a0b1e3baa74c9fefcb24b5efd2131594502a2 /sc/qa
parentba64def7776e592a37fbb1833edacb397ba373a2 (diff)
also test that we are not still listening to the old area
Change-Id: I7ad84ec75f435e3171b064eaaf60a819b09aeb02
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/ucalc_condformat.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/qa/unit/ucalc_condformat.cxx b/sc/qa/unit/ucalc_condformat.cxx
index 6d75c02caafb..f77208b2eb7c 100644
--- a/sc/qa/unit/ucalc_condformat.cxx
+++ b/sc/qa/unit/ucalc_condformat.cxx
@@ -770,6 +770,9 @@ void Test::testCondFormatUpdateMoveTab()
{
m_pDoc->SetValue(ScAddress(0, nRow, 1), 1.0);
CPPUNIT_ASSERT(pEntry->NeedsRepaint());
+
+ m_pDoc->SetValue(ScAddress(0, nRow, 0), 1.0);
+ CPPUNIT_ASSERT(!pEntry->NeedsRepaint());
}
m_pDoc->DeleteTab(1);
@@ -793,6 +796,9 @@ void Test::testCondFormatUpdateInsertTab()
{
m_pDoc->SetValue(ScAddress(0, nRow, 0), 1.0);
CPPUNIT_ASSERT(pEntry->NeedsRepaint());
+
+ m_pDoc->SetValue(ScAddress(0, nRow, 1), 1.0);
+ CPPUNIT_ASSERT(!pEntry->NeedsRepaint());
}
m_pDoc->InsertTab(0, "test2");
@@ -802,6 +808,9 @@ void Test::testCondFormatUpdateInsertTab()
{
m_pDoc->SetValue(ScAddress(0, nRow, 1), 1.0);
CPPUNIT_ASSERT(pEntry->NeedsRepaint());
+
+ m_pDoc->SetValue(ScAddress(0, nRow, 0), 1.0);
+ CPPUNIT_ASSERT(!pEntry->NeedsRepaint());
}
m_pDoc->DeleteTab(1);