diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-03-16 16:40:06 +0100 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-03-16 18:14:18 +0100 |
commit | 2f7f34bf9fb744a2615426e4414dff3ca6fbe6e4 (patch) | |
tree | b344c879144b6958ae0e7755f71132016184159e | |
parent | 9a7fb5f2c4eea895e545437081ad50582bf7cacf (diff) |
tdf#129985: Add unittest
Change-Id: I9a8b923da6ca20fef9a61b9e478267d8c91ace58
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90573
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
-rw-r--r-- | sc/qa/unit/data/xlsx/tdf129985.xlsx | bin | 0 -> 15126 bytes | |||
-rw-r--r-- | sc/qa/unit/subsequent_export-test.cxx | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/sc/qa/unit/data/xlsx/tdf129985.xlsx b/sc/qa/unit/data/xlsx/tdf129985.xlsx Binary files differnew file mode 100644 index 000000000000..0877ca9b8976 --- /dev/null +++ b/sc/qa/unit/data/xlsx/tdf129985.xlsx diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx index 5dad9a32ad66..5a1bba02b5f1 100644 --- a/sc/qa/unit/subsequent_export-test.cxx +++ b/sc/qa/unit/subsequent_export-test.cxx @@ -194,6 +194,7 @@ public: void testPreserveTextWhitespaceXLSX(); void testPreserveTextWhitespace2XLSX(); void testTextDirectionXLSX(); + void testTdf129985(); void testRefStringXLSX(); void testRefStringConfigXLSX(); @@ -327,6 +328,7 @@ public: CPPUNIT_TEST(testMoveCellAnchoredShapesODS); CPPUNIT_TEST(testMatrixMultiplicationXLSX); CPPUNIT_TEST(testTextDirectionXLSX); + CPPUNIT_TEST(testTdf129985); CPPUNIT_TEST(testRefStringXLSX); CPPUNIT_TEST(testRefStringConfigXLSX); @@ -4002,6 +4004,19 @@ void ScExportTest::testTextDirectionXLSX() xDocSh->DoClose(); } +void ScExportTest::testTdf129985() +{ + ScDocShellRef xDocSh = loadDoc("tdf129985.", FORMAT_XLSX); + CPPUNIT_ASSERT(xDocSh.is()); + + xmlDocPtr pDoc = XPathHelper::parseExport2(*this, *xDocSh, m_xSFactory, "xl/styles.xml", FORMAT_XLSX); + CPPUNIT_ASSERT(pDoc); + + assertXPath(pDoc, "/x:styleSheet/x:numFmts/x:numFmt[2]", "formatCode", "m/d/yyyy"); + + xDocSh->DoClose(); +} + void ScExportTest::testTdf88657ODS() { ScDocShellRef xDocSh = loadDoc("tdf88657.", FORMAT_ODS); |