[Libreoffice-commits] core.git: chart2/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Mon Apr 13 12:29:26 UTC 2020
chart2/qa/extras/chart2export.cxx | 13 +++++++++++++
chart2/qa/extras/data/ods/tdf64224.ods |binary
2 files changed, 13 insertions(+)
New commits:
commit 7bc3455af6dca6fa596f374a1d1ed2053323069e
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Apr 13 12:29:03 2020 +0200
Commit: Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Mon Apr 13 14:28:52 2020 +0200
tdf#64224: Add unittest
Change-Id: Ifa8f49e18902c2d279e5ac04c8187d9a1a4b9de1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92111
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 8e2e1a84bcf9..ff72e8e9381e 100644
--- a/chart2/qa/extras/chart2export.cxx
+++ b/chart2/qa/extras/chart2export.cxx
@@ -89,6 +89,7 @@ public:
void testIndividualDataLabelProps();
void testTdf108107();
void testTdf114139();
+ void testTdf64224();
void testChartTitlePropertiesColorFillDOCX();
void testChartTitlePropertiesGradientFillDOCX();
void testChartTitlePropertiesBitmapFillDOCX();
@@ -214,6 +215,7 @@ public:
CPPUNIT_TEST(testIndividualDataLabelProps);
CPPUNIT_TEST(testTdf108107);
CPPUNIT_TEST(testTdf114139);
+ CPPUNIT_TEST(testTdf64224);
CPPUNIT_TEST(testChartTitlePropertiesColorFillDOCX);
CPPUNIT_TEST(testChartTitlePropertiesGradientFillDOCX);
CPPUNIT_TEST(testChartTitlePropertiesBitmapFillDOCX);
@@ -1264,6 +1266,17 @@ void Chart2ExportTest::testTdf114139()
assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:spPr/a:solidFill", 0);
}
+void Chart2ExportTest::testTdf64224()
+{
+ load("/chart2/qa/extras/data/ods/", "tdf64224.ods");
+ xmlDocPtr pXmlDoc = parseExport("xl/charts/chart", "Calc Office Open XML");
+ CPPUNIT_ASSERT(pXmlDoc);
+
+ //no fill
+ assertXPath(pXmlDoc, "/c:chartSpace/c:spPr/a:noFill", 1);
+ assertXPath(pXmlDoc, "/c:chartSpace/c:spPr/a:solidFill", 0);
+}
+
void Chart2ExportTest::testChartTitlePropertiesColorFillDOCX()
{
load("/chart2/qa/extras/data/docx/", "testChartTitlePropertiesColorFill.docx");
diff --git a/chart2/qa/extras/data/ods/tdf64224.ods b/chart2/qa/extras/data/ods/tdf64224.ods
new file mode 100644
index 000000000000..e60e9c4c1246
Binary files /dev/null and b/chart2/qa/extras/data/ods/tdf64224.ods differ
More information about the Libreoffice-commits
mailing list