Kaydet (Commit) fb2c3fec authored tarafından Eike Rathke's avatar Eike Rathke

check that the fdo#79441 case works in both update references modes

Change-Id: I4aa997847661021af27f27e8763a89a61f185f1f
üst f0e73646
...@@ -366,6 +366,7 @@ public: ...@@ -366,6 +366,7 @@ public:
void testSortRefUpdate2(); void testSortRefUpdate2();
void testSortRefUpdate3(); void testSortRefUpdate3();
void testSortRefUpdate4(); void testSortRefUpdate4();
void testSortRefUpdate4_Impl();
void testSortRefUpdate5(); void testSortRefUpdate5();
void testSortRefUpdate6(); void testSortRefUpdate6();
void testSortOutOfPlaceResult(); void testSortOutOfPlaceResult();
......
...@@ -1029,8 +1029,19 @@ void Test::testSortRefUpdate3() ...@@ -1029,8 +1029,19 @@ void Test::testSortRefUpdate3()
// testRefInterne.ods // testRefInterne.ods
void Test::testSortRefUpdate4() void Test::testSortRefUpdate4()
{ {
SortRefUpdateSetter aUpdateSet; // This test has to work in both update reference modes.
{
SortRefNoUpdateSetter aUpdateSet;
testSortRefUpdate4_Impl();
}
{
SortRefUpdateSetter aUpdateSet;
testSortRefUpdate4_Impl();
}
}
void Test::testSortRefUpdate4_Impl()
{
sc::AutoCalcSwitch aACSwitch(*m_pDoc, true); // turn auto calc on. sc::AutoCalcSwitch aACSwitch(*m_pDoc, true); // turn auto calc on.
m_pDoc->InsertTab(0, "Sort"); m_pDoc->InsertTab(0, "Sort");
m_pDoc->InsertTab(1, "Lesson1"); m_pDoc->InsertTab(1, "Lesson1");
......
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