Kaydet (Commit) d6f97891 authored tarafından PriyankaGaikwad's avatar PriyankaGaikwad Kaydeden (comit) Markus Mohrhard

Added unit test for fdo#72221:Fixed for doughnut chart - RT is invalid

Conflicts:
	chart2/qa/extras/chart2export.cxx

Change-Id: I3540884f680f5042da8d12865a06e9ce2f2046d8
üst d48568d3
......@@ -41,6 +41,7 @@ public:
void testEmbeddingsGrabBag();
void testAreaChartLoad();
void testUpDownBars();
void testDoughnutChart();
CPPUNIT_TEST_SUITE(Chart2ExportTest);
CPPUNIT_TEST(test);
......@@ -54,6 +55,7 @@ public:
CPPUNIT_TEST(testEmbeddingsGrabBag);
CPPUNIT_TEST(testAreaChartLoad);
CPPUNIT_TEST(testUpDownBars);
CPPUNIT_TEST(testDoughnutChart);
CPPUNIT_TEST_SUITE_END();
protected:
......@@ -522,6 +524,15 @@ void Chart2ExportTest::testUpDownBars()
assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:lineChart/c:upDownBars");
}
void Chart2ExportTest::testDoughnutChart()
{
load("/chart2/qa/extras/data/docx/", "doughnutChart.docx");
xmlDocPtr pXmlDoc = parseExport("word/charts/chart", "Office Open XML Text");
CPPUNIT_ASSERT(pXmlDoc);
assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:doughnutChart", "1");
}
CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ExportTest);
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