diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-26 16:38:18 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-26 16:59:21 +0100 |
commit | 59003139bd336dc4a85d537c9befe3204638d476 (patch) | |
tree | b11a0b1e3baa74c9fefcb24b5efd2131594502a2 | |
parent | ba64def7776e592a37fbb1833edacb397ba373a2 (diff) |
also test that we are not still listening to the old area
Change-Id: I7ad84ec75f435e3171b064eaaf60a819b09aeb02
-rw-r--r-- | sc/qa/unit/ucalc_condformat.cxx | 9 |
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); |