summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2015-07-24 10:56:30 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2015-07-24 11:09:55 +0200
commita41140d7573aef6fd9a86a38e2a8e07de7afb007 (patch)
tree7e748ef6db71325e0cb00ee68d5ed4902d16fd7c /sc
parentddc642dd270c3cdae01f387049fcf5c2ab23519b (diff)
Add test for OOXML part of tdf#99256
Change-Id: If5e56109f0bf9281be74c17965b047a50f8b55d3
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/data/xlsx/empty.xlsxbin0 -> 5221 bytes
-rw-r--r--sc/qa/unit/subsequent_filters-test.cxx18
2 files changed, 18 insertions, 0 deletions
diff --git a/sc/qa/unit/data/xlsx/empty.xlsx b/sc/qa/unit/data/xlsx/empty.xlsx
new file mode 100644
index 000000000000..c18648506653
--- /dev/null
+++ b/sc/qa/unit/data/xlsx/empty.xlsx
Binary files differ
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 9ab7f162f105..206c750dd613 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -204,6 +204,7 @@ public:
void testEmbeddedImageXLS();
void testEditEngStrikeThroughXLSX();
void testRefStringXLSX();
+ void testRefStringConfigXLSX();
CPPUNIT_TEST_SUITE(ScFiltersTest);
CPPUNIT_TEST(testBooleanFormatXLSX);
@@ -299,6 +300,7 @@ public:
CPPUNIT_TEST(testErrorOnExternalReferences);
CPPUNIT_TEST(testEditEngStrikeThroughXLSX);
CPPUNIT_TEST(testRefStringXLSX);
+ CPPUNIT_TEST(testRefStringConfigXLSX);
CPPUNIT_TEST_SUITE_END();
private:
@@ -3108,6 +3110,22 @@ void ScFiltersTest::testRefStringXLSX()
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()
: ScBootstrapFixture( "sc/qa/unit/data" )
{