diff options
-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 |