[Libreoffice-commits] core.git: sc/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Fri Apr 10 21:58:46 UTC 2020
sc/qa/unit/data/xlsx/tdf55417.xlsx |binary
sc/qa/unit/subsequent_export-test.cxx | 15 +++++++++++++++
2 files changed, 15 insertions(+)
New commits:
commit 822da642f1355f8ed1074737560430876d9ac932
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Fri Apr 10 21:27:50 2020 +0200
Commit: Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Fri Apr 10 23:58:08 2020 +0200
tdf#55417: Add unittest
Change-Id: I1cf633ea0be39c58bf38026d5ea73ad89bec72bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92052
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>
diff --git a/sc/qa/unit/data/xlsx/tdf55417.xlsx b/sc/qa/unit/data/xlsx/tdf55417.xlsx
new file mode 100644
index 000000000000..215c12d5976d
Binary files /dev/null and b/sc/qa/unit/data/xlsx/tdf55417.xlsx differ
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);
More information about the Libreoffice-commits
mailing list