From 59003139bd336dc4a85d537c9befe3204638d476 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 26 Mar 2016 16:38:18 +0100 Subject: also test that we are not still listening to the old area Change-Id: I7ad84ec75f435e3171b064eaaf60a819b09aeb02 --- sc/qa/unit/ucalc_condformat.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sc/qa') 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); -- cgit