summaryrefslogtreecommitdiff
path: root/sc/qa/unit
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-02-02 13:06:50 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-02-02 17:41:53 +0100
commited93075ab037048d86512a2f92dfdbafc9d10b3c (patch)
tree75658d09000b9c5d89802f4eff4a5e56d4844d0f /sc/qa/unit
parent8e40caa3fd75bd90773b909dc14efd5b46e274a3 (diff)
implement test for tdf#43700
Change-Id: Ifcdee2fb31fef635003e62020dd92adfe5d72b2f
Diffstat (limited to 'sc/qa/unit')
-rw-r--r--sc/qa/unit/bugfix-test.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/sc/qa/unit/bugfix-test.cxx b/sc/qa/unit/bugfix-test.cxx
index 39bb792b56eb..e1a07b16c06e 100644
--- a/sc/qa/unit/bugfix-test.cxx
+++ b/sc/qa/unit/bugfix-test.cxx
@@ -80,10 +80,12 @@ public:
void testTdf64229();
void testTdf36933();
+ void testTdf43700();
CPPUNIT_TEST_SUITE(ScFiltersTest);
CPPUNIT_TEST(testTdf64229);
CPPUNIT_TEST(testTdf36933);
+ CPPUNIT_TEST(testTdf43700);
CPPUNIT_TEST_SUITE_END();
private:
uno::Reference<uno::XInterface> m_xCalcComponent;
@@ -125,6 +127,24 @@ void ScFiltersTest::testTdf36933()
xDocSh->DoClose();
}
+void ScFiltersTest::testTdf43700()
+{
+ ScDocShellRef xDocSh = loadDoc("fdo47300test.", ODS);
+
+ xDocSh->DoHardRecalc(true);
+
+ CPPUNIT_ASSERT_MESSAGE("Failed to load fdo47300test.*", xDocSh.Is());
+ ScDocument& rDoc = xDocSh->GetDocument();
+ OUString aCSVFileName;
+
+ //test hard recalc: document has an incorrect cached formula result
+ //hard recalc should have updated to the correct result
+ createCSVPath(OUString("fdo47300test."), aCSVFileName);
+ testFile(aCSVFileName, rDoc, 0);
+
+ xDocSh->DoClose();
+}
+
ScFiltersTest::ScFiltersTest()
: ScBootstrapFixture( "/sc/qa/unit/data" )