Kaydet (Commit) c41f72f5 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

with the correct assumption this check actually makes sense

üst 033cd1d4
...@@ -3933,7 +3933,9 @@ void Test::testSetBackgroundColor() ...@@ -3933,7 +3933,9 @@ void Test::testSetBackgroundColor()
//now check for undo //now check for undo
SfxUndoAction* pUndo = new ScUndoTabColor(m_xDocShRef,0, aOldTabBgColor, aColor); SfxUndoAction* pUndo = new ScUndoTabColor(m_xDocShRef,0, aOldTabBgColor, aColor);
pUndo->Undo(); 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); m_pDoc->DeleteTab(0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment