Kaydet (Commit) 38f5e768 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

add test for tdf#114182

Change-Id: I08dd556814257e64cd0629bcfb2193f939d994e5
Reviewed-on: https://gerrit.libreoffice.org/47155Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 629cfd2c
...@@ -101,6 +101,7 @@ public: ...@@ -101,6 +101,7 @@ public:
void testMultipleAxisXLSX(); void testMultipleAxisXLSX();
void testAxisTitleRotationXLSX(); void testAxisTitleRotationXLSX();
void testAxisCrossBetweenXSLX(); void testAxisCrossBetweenXSLX();
void testPieChartDataPointExplosionXLSX();
CPPUNIT_TEST_SUITE(Chart2ExportTest); CPPUNIT_TEST_SUITE(Chart2ExportTest);
CPPUNIT_TEST(testErrorBarXLSX); CPPUNIT_TEST(testErrorBarXLSX);
...@@ -166,6 +167,7 @@ public: ...@@ -166,6 +167,7 @@ public:
CPPUNIT_TEST(testMultipleAxisXLSX); CPPUNIT_TEST(testMultipleAxisXLSX);
CPPUNIT_TEST(testAxisTitleRotationXLSX); CPPUNIT_TEST(testAxisTitleRotationXLSX);
CPPUNIT_TEST(testAxisCrossBetweenXSLX); CPPUNIT_TEST(testAxisCrossBetweenXSLX);
CPPUNIT_TEST(testPieChartDataPointExplosionXLSX);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
protected: protected:
...@@ -1546,6 +1548,15 @@ void Chart2ExportTest::testAxisCrossBetweenXSLX() ...@@ -1546,6 +1548,15 @@ void Chart2ExportTest::testAxisCrossBetweenXSLX()
assertXPath(pXmlDoc, "(//c:crossBetween)[1]", "val", "midCat"); 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_TEST_SUITE_REGISTRATION(Chart2ExportTest);
CPPUNIT_PLUGIN_IMPLEMENT(); CPPUNIT_PLUGIN_IMPLEMENT();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment