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

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Thu Apr 16 16:55:39 UTC 2020


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

New commits:
commit 1aaf5f559bcc1169cafb73ea4082643a840fcb39
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Thu Apr 16 17:16:29 2020 +0200
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Thu Apr 16 18:54:57 2020 +0200

    tdf#59857: chart2: Add unittest
    
    Change-Id: I6d27868aacc8f2b2b72621c35c5f52f627e6cebb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92380
    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 ff72e8e9381e..10b284adb344 100644
--- a/chart2/qa/extras/chart2export.cxx
+++ b/chart2/qa/extras/chart2export.cxx
@@ -160,6 +160,7 @@ public:
     void testCustomLabelText();
     void testDeletedLegendEntries();
     void testTdf130225();
+    void testTdf59857();
     void testTdf126076();
     void testTdf75330();
     void testTdf127792();
@@ -286,6 +287,7 @@ public:
     CPPUNIT_TEST(testCustomLabelText);
     CPPUNIT_TEST(testDeletedLegendEntries);
     CPPUNIT_TEST(testTdf130225);
+    CPPUNIT_TEST(testTdf59857);
     CPPUNIT_TEST(testTdf126076);
     CPPUNIT_TEST(testTdf75330);
     CPPUNIT_TEST(testTdf127792);
@@ -2612,6 +2614,18 @@ void Chart2ExportTest::testTdf130225()
     CPPUNIT_ASSERT_EQUAL(sal_Int32(1), deletedLegendEntriesSeq[0]);
 }
 
+void Chart2ExportTest::testTdf59857()
+{
+    load("/chart2/qa/extras/data/ods/", "tdf59857.ods");
+    xmlDocPtr pXmlDoc = parseExport("xl/charts/chart","Calc Office Open XML");
+    CPPUNIT_ASSERT(pXmlDoc);
+
+    assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:floor/c:spPr/a:ln/a:noFill", 1);
+    assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:floor/c:spPr/a:solidFill/a:srgbClr", "val", "cccccc");
+    assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:backWall/c:spPr/a:ln/a:noFill", 0);
+    assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:backWall/c:spPr/a:ln/a:solidFill/a:srgbClr", "val", "b3b3b3");
+}
+
 void Chart2ExportTest::testTdf126076()
 {
     load("/chart2/qa/extras/data/xlsx/", "auto_marker_excel10.xlsx");
diff --git a/chart2/qa/extras/data/ods/tdf59857.ods b/chart2/qa/extras/data/ods/tdf59857.ods
new file mode 100644
index 000000000000..e60e9c4c1246
Binary files /dev/null and b/chart2/qa/extras/data/ods/tdf59857.ods differ


More information about the Libreoffice-commits mailing list