diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-02-02 14:43:18 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-02-02 17:41:54 +0100 |
commit | cfbd57de5ed82252075987168904e8ae8c4ed9a8 (patch) | |
tree | 731396a918b873949cb4b50fd46b97540917d37a /sc/qa/unit | |
parent | ec079b9fc5938d548b082278dbb4f02f9569660e (diff) |
add test for tdf#43534
Change-Id: Ib707c418bc501449fa5dab70d56b3b961f6e6169
Diffstat (limited to 'sc/qa/unit')
-rw-r--r-- | sc/qa/unit/bugfix-test.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sc/qa/unit/bugfix-test.cxx b/sc/qa/unit/bugfix-test.cxx index e1a07b16c06e..a9d40bb93687 100644 --- a/sc/qa/unit/bugfix-test.cxx +++ b/sc/qa/unit/bugfix-test.cxx @@ -81,11 +81,13 @@ public: void testTdf64229(); void testTdf36933(); void testTdf43700(); + void testTdf43534(); CPPUNIT_TEST_SUITE(ScFiltersTest); CPPUNIT_TEST(testTdf64229); CPPUNIT_TEST(testTdf36933); CPPUNIT_TEST(testTdf43700); + CPPUNIT_TEST(testTdf43534); CPPUNIT_TEST_SUITE_END(); private: uno::Reference<uno::XInterface> m_xCalcComponent; @@ -145,6 +147,24 @@ void ScFiltersTest::testTdf43700() xDocSh->DoClose(); } +void ScFiltersTest::testTdf43534() +{ + ScDocShellRef xDocSh = loadDoc("fdo43534test.", ODS); + + xDocSh->DoHardRecalc(true); + + CPPUNIT_ASSERT_MESSAGE("Failed to load fdo43534test.*", 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("fdo43534test."), aCSVFileName); + testFile(aCSVFileName, rDoc, 0); + + xDocSh->DoClose(); +} + ScFiltersTest::ScFiltersTest() : ScBootstrapFixture( "/sc/qa/unit/data" ) |