diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-04-10 21:27:50 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-04-10 23:58:08 +0200 |
commit | 822da642f1355f8ed1074737560430876d9ac932 (patch) | |
tree | df33676f862206ff54ed909753fa851df391931b | |
parent | 55ef1fdacb7b9d30a1443cfd5d88e3d735d6d95e (diff) |
tdf#55417: Add unittest
Change-Id: I1cf633ea0be39c58bf38026d5ea73ad89bec72bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92052
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
-rw-r--r-- | sc/qa/unit/data/xlsx/tdf55417.xlsx | bin | 0 -> 4626 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/tdf55417.xlsx b/sc/qa/unit/data/xlsx/tdf55417.xlsx Binary files differnew file mode 100644 index 000000000000..215c12d5976d --- /dev/null +++ b/sc/qa/unit/data/xlsx/tdf55417.xlsx diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx index 385130d6fe83..e212fd9fe34b 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 testTdf55417(); void testTdf129985(); void testTdf73063(); @@ -331,6 +332,7 @@ public: CPPUNIT_TEST(testMoveCellAnchoredShapesODS); CPPUNIT_TEST(testMatrixMultiplicationXLSX); CPPUNIT_TEST(testTextDirectionXLSX); + CPPUNIT_TEST(testTdf55417); CPPUNIT_TEST(testTdf129985); CPPUNIT_TEST(testTdf73063); @@ -4010,6 +4012,19 @@ void ScExportTest::testTextDirectionXLSX() xDocSh->DoClose(); } +void ScExportTest::testTdf55417() +{ + ScDocShellRef xDocSh = loadDoc("tdf55417.", 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:cellXfs/x:xf[1]/x:alignment", 1); + assertXPath(pDoc, "/x:styleSheet/x:cellXfs/x:xf[2]/x:alignment", 1); + + xDocSh->DoClose(); +} + void ScExportTest::testTdf129985() { ScDocShellRef xDocSh = loadDoc("tdf129985.", FORMAT_XLSX); |