summaryrefslogtreecommitdiff
path: root/sc/qa/unit
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-04-01 02:56:15 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-04-01 03:34:07 +0200
commitc41f72f5a9cdee8e048c29768ada9a9e2666b7d7 (patch)
treed4324bf24021ee778b2561ca5612b96188ef5cdb /sc/qa/unit
parent033cd1d41f0862f5c2798646359e8993c6f38fff (diff)
with the correct assumption this check actually makes sense
Diffstat (limited to 'sc/qa/unit')
-rw-r--r--sc/qa/unit/ucalc.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 838d3a1128ac..1bdfe9ddbd0e 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -3933,7 +3933,9 @@ void Test::testSetBackgroundColor()
//now check for undo
SfxUndoAction* pUndo = new ScUndoTabColor(m_xDocShRef,0, aOldTabBgColor, aColor);
pUndo->Undo();
- //CPPUNIT_ASSERT_MESSAGE("the correct color is not set after undo", m_pDoc->GetTabBgColor(0)!= aOldTabBgColor.GetColor());
+ CPPUNIT_ASSERT_MESSAGE("the correct color is not set after undo", m_pDoc->GetTabBgColor(0)== aOldTabBgColor.GetColor());
+ pUndo->Redo();
+ CPPUNIT_ASSERT_MESSAGE("the correct color is not set after undo", m_pDoc->GetTabBgColor(0)== aColor.GetColor());
m_pDoc->DeleteTab(0);
}