Kaydet (Commit) ed93075a authored tarafından Markus Mohrhard's avatar Markus Mohrhard

implement test for tdf#43700

Change-Id: Ifcdee2fb31fef635003e62020dd92adfe5d72b2f
üst 8e40caa3
...@@ -80,10 +80,12 @@ public: ...@@ -80,10 +80,12 @@ public:
void testTdf64229(); void testTdf64229();
void testTdf36933(); void testTdf36933();
void testTdf43700();
CPPUNIT_TEST_SUITE(ScFiltersTest); CPPUNIT_TEST_SUITE(ScFiltersTest);
CPPUNIT_TEST(testTdf64229); CPPUNIT_TEST(testTdf64229);
CPPUNIT_TEST(testTdf36933); CPPUNIT_TEST(testTdf36933);
CPPUNIT_TEST(testTdf43700);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
private: private:
uno::Reference<uno::XInterface> m_xCalcComponent; uno::Reference<uno::XInterface> m_xCalcComponent;
...@@ -125,6 +127,24 @@ void ScFiltersTest::testTdf36933() ...@@ -125,6 +127,24 @@ void ScFiltersTest::testTdf36933()
xDocSh->DoClose(); 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() ScFiltersTest::ScFiltersTest()
: ScBootstrapFixture( "/sc/qa/unit/data" ) : ScBootstrapFixture( "/sc/qa/unit/data" )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment