[Libreoffice-commits] core.git: chart2/qa
PriyankaGaikwad
priyanka.gaikwad at synerzip.com
Thu Jan 30 19:18:35 PST 2014
chart2/qa/extras/chart2export.cxx | 11 +++++++++++
chart2/qa/extras/data/docx/doughnutChart.docx |binary
2 files changed, 11 insertions(+)
New commits:
commit d6f97891c1fb0d45e1405afe724aafd1e86efd29
Author: PriyankaGaikwad <priyanka.gaikwad at synerzip.com>
Date: Fri Jan 17 10:19:09 2014 +0530
Added unit test for fdo#72221:Fixed for doughnut chart - RT is invalid
Conflicts:
chart2/qa/extras/chart2export.cxx
Change-Id: I3540884f680f5042da8d12865a06e9ce2f2046d8
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx
index b62c254..e164296 100644
--- a/chart2/qa/extras/chart2export.cxx
+++ b/chart2/qa/extras/chart2export.cxx
@@ -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();
diff --git a/chart2/qa/extras/data/docx/doughnutChart.docx b/chart2/qa/extras/data/docx/doughnutChart.docx
new file mode 100644
index 0000000..f0642d4
Binary files /dev/null and b/chart2/qa/extras/data/docx/doughnutChart.docx differ
More information about the Libreoffice-commits
mailing list