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

with SetInTest it is possible to use some more ScDocFunc methods

üst 0034110c
...@@ -3903,11 +3903,11 @@ void Test::testMergedCells() ...@@ -3903,11 +3903,11 @@ void Test::testMergedCells()
ScRange aRange(0,2,0,MAXCOL,2,0); ScRange aRange(0,2,0,MAXCOL,2,0);
ScMarkData aMark; ScMarkData aMark;
aMark.SetMarkArea(aRange); aMark.SetMarkArea(aRange);
m_pDoc->SetInTest();
aDocFunc.InsertCells(aRange, &aMark, INS_INSROWS, true, true); aDocFunc.InsertCells(aRange, &aMark, INS_INSROWS, true, true);
m_pDoc->ExtendMerge( 1, 1, nEndCol, nEndRow, 0, false); m_pDoc->ExtendMerge( 1, 1, nEndCol, nEndRow, 0, false);
cout << nEndRow << nEndCol; cout << nEndRow << nEndCol;
//ScEditableTester won't work without an SfxMedium/XStorage CPPUNIT_ASSERT_MESSAGE("did not increase merge area", nEndCol == 3 && nEndRow == 4);
//CPPUNIT_ASSERT_MESSAGE("did not increase merge area", nEndCol == 3 && nEndRow == 4);
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