summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-04-08 18:21:48 +0200
committerXisco Faulí <xiscofauli@libreoffice.org>2020-04-08 21:56:50 +0200
commitf7e23260d22416667fb707e06282c2aeb538d816 (patch)
tree9d792fcc48e8fc30e31ce2ed027838b77b9b8141 /chart2
parent2226997d38cc8fb838ae2fcbe3a87114acf29b38 (diff)
tdf#114139: Add unittest
Change-Id: I28518960d4e5c7d4dd4cf660a5926241de783052 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91934 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/qa/extras/chart2export.cxx14
-rw-r--r--chart2/qa/extras/data/xlsx/tdf114139.xlsxbin0 -> 18794 bytes
2 files changed, 14 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx
index 0570ca4697c6..589225e8cd2e 100644
--- a/chart2/qa/extras/chart2export.cxx
+++ b/chart2/qa/extras/chart2export.cxx
@@ -88,6 +88,7 @@ public:
void testDataLabelDefaultLineChartDOCX();
void testIndividualDataLabelProps();
void testTdf108107();
+ void testTdf114139();
void testChartTitlePropertiesColorFillDOCX();
void testChartTitlePropertiesGradientFillDOCX();
void testChartTitlePropertiesBitmapFillDOCX();
@@ -211,6 +212,7 @@ public:
CPPUNIT_TEST(testDataLabelDefaultLineChartDOCX);
CPPUNIT_TEST(testIndividualDataLabelProps);
CPPUNIT_TEST(testTdf108107);
+ CPPUNIT_TEST(testTdf114139);
CPPUNIT_TEST(testChartTitlePropertiesColorFillDOCX);
CPPUNIT_TEST(testChartTitlePropertiesGradientFillDOCX);
CPPUNIT_TEST(testChartTitlePropertiesBitmapFillDOCX);
@@ -1248,6 +1250,18 @@ void Chart2ExportTest::testTdf108107()
assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:lineChart/c:ser/c:dLbls/c:dLbl[1]/c:txPr/a:p/a:pPr/a:defRPr", "sz", "2000");
}
+void Chart2ExportTest::testTdf114139()
+{
+ load("/chart2/qa/extras/data/xlsx/", "tdf114139.xlsx");
+ xmlDocPtr pXmlDoc = parseExport("xl/charts/chart", "Calc Office Open XML");
+ CPPUNIT_ASSERT(pXmlDoc);
+
+ assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:pie3DChart", 1);
+ //no fill
+ assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:spPr", 0);
+ assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:spPr/a:solidFill", 0);
+}
+
void Chart2ExportTest::testChartTitlePropertiesColorFillDOCX()
{
load("/chart2/qa/extras/data/docx/", "testChartTitlePropertiesColorFill.docx");
diff --git a/chart2/qa/extras/data/xlsx/tdf114139.xlsx b/chart2/qa/extras/data/xlsx/tdf114139.xlsx
new file mode 100644
index 000000000000..ef09575c1fa5
--- /dev/null
+++ b/chart2/qa/extras/data/xlsx/tdf114139.xlsx
Binary files differ