summaryrefslogtreecommitdiff
path: root/sc/qa/unit
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-02-02 13:02:06 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-02-02 17:41:52 +0100
commitbebcf22c8f274daf2c7cf0b810f0ede4d00065f9 (patch)
tree3850cad39842a9849be74f5f558355b13269814a /sc/qa/unit
parente429d821504064bfca8dc17a421bc0358f812310 (diff)
implement test for tdf#36933
Change-Id: I39fdda39c5fa0fea71ecdefe4df8b956de98868a
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 c3506d615e3a..39bb792b56eb 100644
--- a/sc/qa/unit/bugfix-test.cxx
+++ b/sc/qa/unit/bugfix-test.cxx
@@ -79,9 +79,11 @@ public:
virtual void tearDown() SAL_OVERRIDE;
void testTdf64229();
+ void testTdf36933();
CPPUNIT_TEST_SUITE(ScFiltersTest);
CPPUNIT_TEST(testTdf64229);
+ CPPUNIT_TEST(testTdf36933);
CPPUNIT_TEST_SUITE_END();
private:
uno::Reference<uno::XInterface> m_xCalcComponent;
@@ -105,6 +107,24 @@ void ScFiltersTest::testTdf64229()
xDocSh->DoClose();
}
+void ScFiltersTest::testTdf36933()
+{
+ ScDocShellRef xDocSh = loadDoc("fdo36933test.", ODS);
+
+ xDocSh->DoHardRecalc(true);
+
+ CPPUNIT_ASSERT_MESSAGE("Failed to load fdo36933test.*", 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("fdo36933test."), aCSVFileName);
+ testFile(aCSVFileName, rDoc, 0);
+
+ xDocSh->DoClose();
+}
+
ScFiltersTest::ScFiltersTest()
: ScBootstrapFixture( "/sc/qa/unit/data" )