[Libreoffice-commits] core.git: chart2/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Wed Mar 24 15:20:51 UTC 2021
chart2/qa/extras/chart2export.cxx | 11 +++++++++++
chart2/qa/extras/data/ods/tdf96161.ods |binary
2 files changed, 11 insertions(+)
New commits:
commit 66db90c01d6d5b1b70004c02954221d4fbc8a196
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Tue Mar 23 16:05:39 2021 +0100
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed Mar 24 16:19:54 2021 +0100
tdf#96161: chart2_export: Add unittest
Change-Id: I8460a1acd937f06926452dcf01bf39c355e7d9df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113001
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx
index bb9b04e559c3..817f3d1734a2 100644
--- a/chart2/qa/extras/chart2export.cxx
+++ b/chart2/qa/extras/chart2export.cxx
@@ -129,6 +129,7 @@ public:
void testTitleCharacterPropertiesXLSX();
void testPlotVisOnlyXLSX();
void testBarChartVaryColorsXLSX();
+ void testTdf96161();
void testMultipleAxisXLSX();
void testSecondaryAxisXLSX();
void testSetSeriesToSecondaryAxisXLSX();
@@ -279,6 +280,7 @@ public:
CPPUNIT_TEST(testTitleCharacterPropertiesXLSX);
CPPUNIT_TEST(testPlotVisOnlyXLSX);
CPPUNIT_TEST(testBarChartVaryColorsXLSX);
+ CPPUNIT_TEST(testTdf96161);
CPPUNIT_TEST(testMultipleAxisXLSX);
CPPUNIT_TEST(testSecondaryAxisXLSX);
CPPUNIT_TEST(testSetSeriesToSecondaryAxisXLSX);
@@ -2082,6 +2084,15 @@ void Chart2ExportTest::testBarChartVaryColorsXLSX()
assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:barChart/c:varyColors", "val", "0");
}
+void Chart2ExportTest::testTdf96161()
+{
+ load(u"/chart2/qa/extras/data/ods/", "tdf96161.ods");
+ xmlDocUniquePtr pXmlDoc = parseExport("xl/charts/chart", "Calc Office Open XML");
+ CPPUNIT_ASSERT(pXmlDoc);
+
+ assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:lineChart/c:varyColors", "val", "0");
+}
+
void Chart2ExportTest::testMultipleAxisXLSX()
{
load(u"/chart2/qa/extras/data/ods/", "multiple_axis.ods");
diff --git a/chart2/qa/extras/data/ods/tdf96161.ods b/chart2/qa/extras/data/ods/tdf96161.ods
new file mode 100644
index 000000000000..797a712a74d2
Binary files /dev/null and b/chart2/qa/extras/data/ods/tdf96161.ods differ
More information about the Libreoffice-commits
mailing list