summaryrefslogtreecommitdiff
path: root/sc/qa/unit
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:14:05 +0100
commitfb2c3fec1b98b54f929d0cec64789b79306e03b1 (patch)
tree3cb1949ac8bcab21b29bf3f086ed84273d70c8c2 /sc/qa/unit
parentf0e7364603c9566bc158303c515c3274ccba62ca (diff)
check that the fdo#79441 case works in both update references modes
Change-Id: I4aa997847661021af27f27e8763a89a61f185f1f
Diffstat (limited to 'sc/qa/unit')
-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");