summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-05-16 22:23:26 +0200
committerXisco FaulĂ­ <xiscofauli@libreoffice.org>2020-05-16 23:20:58 +0200
commit909f343f267a45028f58b577179b3e594b430d39 (patch)
tree888b89a22e0c13c537725706002e78468eab4201
parentd0922a4ce0ddf458fa10a504ee9b769f2c86b149 (diff)
tdf#76949: sc: Add unittest
Change-Id: I53786b591d1038d537ff109b8315655084212e7c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94370 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
-rw-r--r--sc/qa/unit/data/ods/tdf76949.odsbin0 -> 11912 bytes
-rw-r--r--sc/qa/unit/subsequent_export-test.cxx15
2 files changed, 15 insertions, 0 deletions
diff --git a/sc/qa/unit/data/ods/tdf76949.ods b/sc/qa/unit/data/ods/tdf76949.ods
new file mode 100644
index 000000000000..a1748287da30
--- /dev/null
+++ b/sc/qa/unit/data/ods/tdf76949.ods
Binary files differ
diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx
index 4a7a3d5172ac..165c68e7ada8 100644
--- a/sc/qa/unit/subsequent_export-test.cxx
+++ b/sc/qa/unit/subsequent_export-test.cxx
@@ -196,6 +196,7 @@ public:
void testTextDirectionXLSX();
void testTdf66668();
void testTdf130108();
+ void testTdf76949();
void testTdf55417();
void testTdf129985();
void testTdf73063();
@@ -340,6 +341,7 @@ public:
CPPUNIT_TEST(testTextDirectionXLSX);
CPPUNIT_TEST(testTdf66668);
CPPUNIT_TEST(testTdf130108);
+ CPPUNIT_TEST(testTdf76949);
CPPUNIT_TEST(testTdf55417);
CPPUNIT_TEST(testTdf129985);
CPPUNIT_TEST(testTdf73063);
@@ -4052,6 +4054,19 @@ void ScExportTest::testTdf130108()
xDocSh->DoClose();
}
+void ScExportTest::testTdf76949()
+{
+ ScDocShellRef xDocSh = loadDoc("tdf76949.", FORMAT_ODS);
+ CPPUNIT_ASSERT(xDocSh.is());
+
+ xmlDocUniquePtr pSheet = XPathHelper::parseExport2(*this, *xDocSh, m_xSFactory, "xl/worksheets/sheet1.xml", FORMAT_XLSX);
+ CPPUNIT_ASSERT(pSheet);
+
+ assertXPathContent(pSheet, "/x:worksheet/x:sheetData/x:row/x:c/x:f", "_xlfn.CHISQ.DIST(1,1,1)");
+
+ xDocSh->DoClose();
+}
+
void ScExportTest::testTdf55417()
{
ScDocShellRef xDocSh = loadDoc("tdf55417.", FORMAT_XLSX);