summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-11-25 02:22:16 +0100
committerEike Rathke <erack@redhat.com>2014-11-25 03:27:40 +0100
commit86a930d69a2bb66370ac72396281285efb3edc6c (patch)
treef5dc428385b216b4ba27a07781fae70209cea08b
parent36d53e879e7a2571ebae7d755b7e5aacf76c4d55 (diff)
check that the fdo#79441 case works in both update references modes
Change-Id: I4aa997847661021af27f27e8763a89a61f185f1f (cherry picked from commit fb2c3fec1b98b54f929d0cec64789b79306e03b1)
-rw-r--r--sc/qa/unit/ucalc.hxx1
-rw-r--r--sc/qa/unit/ucalc_sort.cxx13
2 files changed, 13 insertions, 1 deletions
diff --git a/sc/qa/unit/ucalc.hxx b/sc/qa/unit/ucalc.hxx
index 99883c5944e9..7cad0ad9d299 100644
--- a/sc/qa/unit/ucalc.hxx
+++ b/sc/qa/unit/ucalc.hxx
@@ -366,6 +366,7 @@ public:
void testSortRefUpdate2();
void testSortRefUpdate3();
void testSortRefUpdate4();
+ void testSortRefUpdate4_Impl();
void testSortRefUpdate5();
void testSortRefUpdate6();
void testSortOutOfPlaceResult();
diff --git a/sc/qa/unit/ucalc_sort.cxx b/sc/qa/unit/ucalc_sort.cxx
index e6ff96e19a2a..fa338105105a 100644
--- a/sc/qa/unit/ucalc_sort.cxx
+++ b/sc/qa/unit/ucalc_sort.cxx
@@ -1029,8 +1029,19 @@ void Test::testSortRefUpdate3()
// testRefInterne.ods
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.
m_pDoc->InsertTab(0, "Sort");
m_pDoc->InsertTab(1, "Lesson1");