diff options
author | YogeshBharate <yogesh.bharate@synerzip.com> | 2014-01-16 14:41:50 +0530 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-16 14:51:37 +0100 |
commit | f6824eb6df649628630598278aa1b5e3ab4b9a0d (patch) | |
tree | 4993f780f9b06037c0138d82e3a231c83af28579 /chart2 | |
parent | c7cfe0876d7ca3d861cc6d8c1f84970f9f71def9 (diff) |
Unit test added for fdo#72345 Up Down Bars are missing after Round trip
Unit test added to check whether Up Down Bars preserved after Round trip.
Conflicts:
chart2/qa/extras/chart2export.cxx
Change-Id: Ia427410cf76bc8cd998f399da8e9ad1f9712a076
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 10 | ||||
-rw-r--r-- | chart2/qa/extras/data/docx/UpDownBars.docx | bin | 0 -> 24198 bytes |
2 files changed, 10 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index 7b1629af69d2..d29e353f2bab 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -40,6 +40,7 @@ public: void testChartExternalData(); void testEmbeddingsGrabBag(); void testAreaChartLoad(); + void testUpDownBars(); CPPUNIT_TEST_SUITE(Chart2ExportTest); CPPUNIT_TEST(test); @@ -52,6 +53,7 @@ public: CPPUNIT_TEST(testChartExternalData); CPPUNIT_TEST(testEmbeddingsGrabBag); CPPUNIT_TEST(testAreaChartLoad); + CPPUNIT_TEST(testUpDownBars); CPPUNIT_TEST_SUITE_END(); protected: @@ -512,6 +514,14 @@ void Chart2ExportTest::testAreaChartLoad() assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:areaChart/c:ser/c:dLbls/c:dLbl", 0); } +void Chart2ExportTest::testUpDownBars() +{ + load("/chart2/qa/extras/data/docx/", "UpDownBars.docx"); + xmlDocPtr pXmlDoc = parseExport("word/charts/chart", "Office Open XML Text"); + CPPUNIT_ASSERT(pXmlDoc); + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:lineChart/c:upDownBars"); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ExportTest); CPPUNIT_PLUGIN_IMPLEMENT(); diff --git a/chart2/qa/extras/data/docx/UpDownBars.docx b/chart2/qa/extras/data/docx/UpDownBars.docx Binary files differnew file mode 100644 index 000000000000..755f81499659 --- /dev/null +++ b/chart2/qa/extras/data/docx/UpDownBars.docx |