summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorPriyankaGaikwad <priyanka.gaikwad@synerzip.com>2014-01-17 10:19:09 +0530
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-31 04:18:02 +0100
commitd6f97891c1fb0d45e1405afe724aafd1e86efd29 (patch)
tree29530142fbdb4f2a01771cf33700c24f41740725 /chart2
parentd48568d37c54669f1a90eef1fdb11a1b779e3345 (diff)
Added unit test for fdo#72221:Fixed for doughnut chart - RT is invalid
Conflicts: chart2/qa/extras/chart2export.cxx Change-Id: I3540884f680f5042da8d12865a06e9ce2f2046d8
Diffstat (limited to 'chart2')
-rw-r--r--chart2/qa/extras/chart2export.cxx11
-rw-r--r--chart2/qa/extras/data/docx/doughnutChart.docxbin0 -> 17486 bytes
2 files changed, 11 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx
index b62c254b3b18..e1642962517a 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 000000000000..f0642d4d5c29
--- /dev/null
+++ b/chart2/qa/extras/data/docx/doughnutChart.docx
Binary files differ