diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-03-23 16:05:39 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-03-24 16:19:54 +0100 |
commit | 66db90c01d6d5b1b70004c02954221d4fbc8a196 (patch) | |
tree | fa2f8d96d4ee9949ec45f84ac98c0053f05fc128 /chart2 | |
parent | 90477ff28ed3b8597ea373efc936a46b00955407 (diff) |
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@libreoffice.org>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 11 | ||||
-rw-r--r-- | chart2/qa/extras/data/ods/tdf96161.ods | bin | 0 -> 17545 bytes |
2 files changed, 11 insertions, 0 deletions
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 Binary files differnew file mode 100644 index 000000000000..797a712a74d2 --- /dev/null +++ b/chart2/qa/extras/data/ods/tdf96161.ods |