diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-03-30 00:31:37 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-03-30 17:08:47 +0200 |
commit | 8ac95ba6904d68f746e44f276c4297c345182cbf (patch) | |
tree | 47c824742553f51ecaee560845329c9ebb6eab45 | |
parent | 51a84b701d93a608ecee2451b8b286b6870cebc3 (diff) |
add test for fdo#74619
Change-Id: I94ed07b730b976f32ce8572f1ccefa96be0a6e77
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 11 | ||||
-rw-r--r-- | chart2/qa/extras/data/ods/smoothedLines.ods | bin | 0 -> 16115 bytes |
2 files changed, 11 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index 7697bab4cbe7..8e0a4f944c5b 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -54,6 +54,7 @@ public: void testPieChartRotation(); void testEmbeddingsOleObjectGrabBag(); void testGapWidthXLSX(); + void testSmoothedLines(); CPPUNIT_TEST_SUITE(Chart2ExportTest); CPPUNIT_TEST(test); @@ -80,6 +81,7 @@ public: CPPUNIT_TEST(testPieChartRotation); CPPUNIT_TEST(testEmbeddingsOleObjectGrabBag); CPPUNIT_TEST(testGapWidthXLSX); + CPPUNIT_TEST(testSmoothedLines); CPPUNIT_TEST_SUITE_END(); protected: @@ -554,6 +556,7 @@ void Chart2ExportTest::testUpDownBars() assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:lineChart/c:upDownBars"); } +<<<<<<< HEAD void Chart2ExportTest::testDoughnutChart() { load("/chart2/qa/extras/data/docx/", "doughnutChart.docx"); @@ -772,6 +775,14 @@ void Chart2ExportTest::testGapWidthXLSX() checkSheetForGapWidthAndOverlap(xChartDoc, 50, 30); } +void Chart2ExportTest::testSmoothedLines() +{ + load("/chart2/qa/extras/data/ods/", "smoothedLines.ods"); + xmlDocPtr pXmlDoc = parseExport("xl/charts/chart", "Calc Office Open XML"); + CPPUNIT_ASSERT(pXmlDoc); + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:lineChart/c:ser[1]/c:smooth", "val", "0"); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ExportTest); CPPUNIT_PLUGIN_IMPLEMENT(); diff --git a/chart2/qa/extras/data/ods/smoothedLines.ods b/chart2/qa/extras/data/ods/smoothedLines.ods Binary files differnew file mode 100644 index 000000000000..725827e639e1 --- /dev/null +++ b/chart2/qa/extras/data/ods/smoothedLines.ods |