[Libreoffice-commits] core.git: chart2/qa
YogeshBharate
yogesh.bharate at synerzip.com
Thu Jan 16 05:53:35 PST 2014
chart2/qa/extras/chart2export.cxx | 10 ++++++++++
chart2/qa/extras/data/docx/UpDownBars.docx |binary
2 files changed, 10 insertions(+)
New commits:
commit f6824eb6df649628630598278aa1b5e3ab4b9a0d
Author: YogeshBharate <yogesh.bharate at synerzip.com>
Date: Thu Jan 16 14:41:50 2014 +0530
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
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx
index 7b1629a..d29e353 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
new file mode 100644
index 0000000..755f814
Binary files /dev/null and b/chart2/qa/extras/data/docx/UpDownBars.docx differ
More information about the Libreoffice-commits
mailing list