diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-12-28 21:10:44 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-12-29 01:34:25 +0100 |
commit | 38f5e768b0f858f8f990a8f297396821c75d45dc (patch) | |
tree | 7a9eb925ae06658d1e8a92d49f37585d318e5aa9 /chart2/qa | |
parent | 629cfd2c1d3a43048fdb87853fa886b19105a786 (diff) |
add test for tdf#114182
Change-Id: I08dd556814257e64cd0629bcfb2193f939d994e5
Reviewed-on: https://gerrit.libreoffice.org/47155
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'chart2/qa')
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 11 | ||||
-rw-r--r-- | chart2/qa/extras/data/xlsx/pie_chart_datapoint_explosion.xlsx | bin | 0 -> 19237 bytes |
2 files changed, 11 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index 67aa996c89d5..b68f969cb90b 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -101,6 +101,7 @@ public: void testMultipleAxisXLSX(); void testAxisTitleRotationXLSX(); void testAxisCrossBetweenXSLX(); + void testPieChartDataPointExplosionXLSX(); CPPUNIT_TEST_SUITE(Chart2ExportTest); CPPUNIT_TEST(testErrorBarXLSX); @@ -166,6 +167,7 @@ public: CPPUNIT_TEST(testMultipleAxisXLSX); CPPUNIT_TEST(testAxisTitleRotationXLSX); CPPUNIT_TEST(testAxisCrossBetweenXSLX); + CPPUNIT_TEST(testPieChartDataPointExplosionXLSX); CPPUNIT_TEST_SUITE_END(); protected: @@ -1546,6 +1548,15 @@ void Chart2ExportTest::testAxisCrossBetweenXSLX() assertXPath(pXmlDoc, "(//c:crossBetween)[1]", "val", "midCat"); } +void Chart2ExportTest::testPieChartDataPointExplosionXLSX() +{ + load("/chart2/qa/extras/data/xlsx/", "pie_chart_datapoint_explosion.xlsx"); + xmlDocPtr pXmlDoc = parseExport("xl/charts/chart", "Calc Office Open XML"); + CPPUNIT_ASSERT(pXmlDoc); + + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:pieChart/c:ser/c:dPt/c:explosion", "val", "28"); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ExportTest); CPPUNIT_PLUGIN_IMPLEMENT(); diff --git a/chart2/qa/extras/data/xlsx/pie_chart_datapoint_explosion.xlsx b/chart2/qa/extras/data/xlsx/pie_chart_datapoint_explosion.xlsx Binary files differnew file mode 100644 index 000000000000..273ebeb82ede --- /dev/null +++ b/chart2/qa/extras/data/xlsx/pie_chart_datapoint_explosion.xlsx |