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>
This commit is contained in:
@@ -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();
|
||||
|
BIN
chart2/qa/extras/data/xlsx/pie_chart_datapoint_explosion.xlsx
Normal file
BIN
chart2/qa/extras/data/xlsx/pie_chart_datapoint_explosion.xlsx
Normal file
Binary file not shown.
Reference in New Issue
Block a user