diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-02-02 12:53:06 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-02-02 17:41:52 +0100 |
commit | b7b1fe2348f2093bf90ca1a0dbab8a9a62264a60 (patch) | |
tree | e8d9ce7774ec700ca351588ac78cf404595d2fae /sc/qa | |
parent | 9af553644ac818b7e3155b8d88e988bd2b9c0ffd (diff) |
add test for tdf#64229
Change-Id: I8f83aa311d5196504eeb61c0797f882b617474ea
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/bugfix-test.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sc/qa/unit/bugfix-test.cxx b/sc/qa/unit/bugfix-test.cxx index 544235bb2e6c..c3506d615e3a 100644 --- a/sc/qa/unit/bugfix-test.cxx +++ b/sc/qa/unit/bugfix-test.cxx @@ -78,12 +78,34 @@ public: virtual void setUp() SAL_OVERRIDE; virtual void tearDown() SAL_OVERRIDE; + void testTdf64229(); + CPPUNIT_TEST_SUITE(ScFiltersTest); + CPPUNIT_TEST(testTdf64229); CPPUNIT_TEST_SUITE_END(); private: uno::Reference<uno::XInterface> m_xCalcComponent; }; +void ScFiltersTest::testTdf64229() +{ + ScDocShellRef xDocSh = loadDoc("fdo64229b.", ODS); + + xDocSh->DoHardRecalc(true); + + CPPUNIT_ASSERT_MESSAGE("Failed to load fdo64229b.*", 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("fdo64229b."), aCSVFileName); + testFile(aCSVFileName, rDoc, 0); + + xDocSh->DoClose(); +} + + ScFiltersTest::ScFiltersTest() : ScBootstrapFixture( "/sc/qa/unit/data" ) { |