sc/qa/unit/data/ods/tdf76949.ods |binary sc/qa/unit/subsequent_export-test.cxx | 15 +++++++++++++++ 2 files changed, 15 insertions(+)
New commits: commit 909f343f267a45028f58b577179b3e594b430d39 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Sat May 16 22:23:26 2020 +0200 Commit: Xisco FaulĂ <xiscofa...@libreoffice.org> CommitDate: Sat May 16 23:20:58 2020 +0200 tdf#76949: sc: Add unittest Change-Id: I53786b591d1038d537ff109b8315655084212e7c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94370 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ <xiscofa...@libreoffice.org> 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 Binary files /dev/null and b/sc/qa/unit/data/ods/tdf76949.ods 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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits