diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-07-10 10:35:38 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-07-15 23:48:43 +0200 |
commit | cb6a7b988a00500fbc4116c38bc1a959ca16d065 (patch) | |
tree | 3279719c59866e02e1282a95a17fc1ad9e860493 /chart2 | |
parent | 19ffc31ac047e9e8986591937ad945bc7dc2b875 (diff) |
tdf#60316: chart2_export: Add unittest
Change-Id: Ia12f925807a93a32072322982d789ffa8e24e138
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98478
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 13 | ||||
-rwxr-xr-x | chart2/qa/extras/data/pptx/tdf60316.pptx | bin | 0 -> 46023 bytes |
2 files changed, 13 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index f70898a11ce6..628bdb98b213 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -160,6 +160,7 @@ public: void testTdf123206_customLabelText(); void testCustomLabelText(); void testDeletedLegendEntries(); + void testTdf60316(); void testTdf130225(); void testTdf59857(); void testTdf126076(); @@ -295,6 +296,7 @@ public: CPPUNIT_TEST(testTdf123206_customLabelText); CPPUNIT_TEST(testCustomLabelText); CPPUNIT_TEST(testDeletedLegendEntries); + CPPUNIT_TEST(testTdf60316); CPPUNIT_TEST(testTdf130225); CPPUNIT_TEST(testTdf59857); CPPUNIT_TEST(testTdf126076); @@ -2635,6 +2637,17 @@ void Chart2ExportTest::testDeletedLegendEntries() } } +void Chart2ExportTest::testTdf60316() +{ + load("/chart2/qa/extras/data/pptx/", "tdf60316.pptx"); + xmlDocUniquePtr pXmlDoc = parseExport("ppt/charts/chart", "Impress MS PowerPoint 2007 XML"); + CPPUNIT_ASSERT(pXmlDoc); + + // Without the fix in place, the shape would have had a solidFill background + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:spPr/a:noFill", 1); + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:spPr/a:solidFill", 0); +} + void Chart2ExportTest::testTdf130225() { load("/chart2/qa/extras/data/docx/", "piechart_deleted_legend_entry.docx"); diff --git a/chart2/qa/extras/data/pptx/tdf60316.pptx b/chart2/qa/extras/data/pptx/tdf60316.pptx Binary files differnew file mode 100755 index 000000000000..d1da03e5fa46 --- /dev/null +++ b/chart2/qa/extras/data/pptx/tdf60316.pptx |