Kaydet (Commit) a41140d7 authored tarafından Katarina Behrens's avatar Katarina Behrens

Add test for OOXML part of tdf#99256

Change-Id: If5e56109f0bf9281be74c17965b047a50f8b55d3
üst ddc642dd
...@@ -204,6 +204,7 @@ public: ...@@ -204,6 +204,7 @@ public:
void testEmbeddedImageXLS(); void testEmbeddedImageXLS();
void testEditEngStrikeThroughXLSX(); void testEditEngStrikeThroughXLSX();
void testRefStringXLSX(); void testRefStringXLSX();
void testRefStringConfigXLSX();
CPPUNIT_TEST_SUITE(ScFiltersTest); CPPUNIT_TEST_SUITE(ScFiltersTest);
CPPUNIT_TEST(testBooleanFormatXLSX); CPPUNIT_TEST(testBooleanFormatXLSX);
...@@ -299,6 +300,7 @@ public: ...@@ -299,6 +300,7 @@ public:
CPPUNIT_TEST(testErrorOnExternalReferences); CPPUNIT_TEST(testErrorOnExternalReferences);
CPPUNIT_TEST(testEditEngStrikeThroughXLSX); CPPUNIT_TEST(testEditEngStrikeThroughXLSX);
CPPUNIT_TEST(testRefStringXLSX); CPPUNIT_TEST(testRefStringXLSX);
CPPUNIT_TEST(testRefStringConfigXLSX);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
private: private:
...@@ -3108,6 +3110,22 @@ void ScFiltersTest::testRefStringXLSX() ...@@ -3108,6 +3110,22 @@ void ScFiltersTest::testRefStringXLSX()
xDocSh->DoClose(); xDocSh->DoClose();
} }
void ScFiltersTest::testRefStringConfigXLSX()
{
ScDocShellRef xDocSh = loadDoc("empty.", XLSX);
CPPUNIT_ASSERT_MESSAGE("Failed to open doc", xDocSh.Is());
xDocSh = saveAndReload( &(*xDocSh), XLSX);
CPPUNIT_ASSERT_MESSAGE("Failed to reload doc", xDocSh.Is());
ScDocument& rDoc = xDocSh->GetDocument();
ScCalcConfig aConfig = rDoc.GetCalcConfig();
CPPUNIT_ASSERT_EQUAL_MESSAGE("String ref syntax doesn't match", formula::FormulaGrammar::CONV_OOO,
aConfig.meStringRefAddressSyntax);
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