[Libreoffice-commits] core.git: chart2/qa

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Wed Apr 8 19:57:24 UTC 2020


 chart2/qa/extras/chart2export.cxx         |   14 ++++++++++++++
 chart2/qa/extras/data/xlsx/tdf114139.xlsx |binary
 2 files changed, 14 insertions(+)

New commits:
commit f7e23260d22416667fb707e06282c2aeb538d816
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed Apr 8 18:21:48 2020 +0200
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Wed Apr 8 21:56:50 2020 +0200

    tdf#114139: Add unittest
    
    Change-Id: I28518960d4e5c7d4dd4cf660a5926241de783052
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91934
    Tested-by: Jenkins
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>

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
Binary files /dev/null and b/chart2/qa/extras/data/xlsx/tdf114139.xlsx differ


More information about the Libreoffice-commits mailing list