sc/qa/unit/data/xlsx/empty.xlsx |binary sc/qa/unit/subsequent_filters-test.cxx | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+)
New commits: commit a41140d7573aef6fd9a86a38e2a8e07de7afb007 Author: Katarina Behrens <katarina.behr...@cib.de> Date: Fri Jul 24 10:56:30 2015 +0200 Add test for OOXML part of tdf#99256 Change-Id: If5e56109f0bf9281be74c17965b047a50f8b55d3 diff --git a/sc/qa/unit/data/xlsx/empty.xlsx b/sc/qa/unit/data/xlsx/empty.xlsx new file mode 100644 index 0000000..c186485 Binary files /dev/null and b/sc/qa/unit/data/xlsx/empty.xlsx differ diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx index 9ab7f16..206c750 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" ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits