diff options
-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); |