diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-05-11 05:10:16 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-05-11 05:19:46 +0200 |
commit | 285d5c52f8dc07f15c62ca9698209f6132b91467 (patch) | |
tree | 908fcba30683b221ef7d47cbaa666998cc21202f /chart2 | |
parent | ffaa8e48b5a98bb7dd1891da09bf796467cf849f (diff) |
add test for tdf#84347
Change-Id: I437801a752e2ae2fa762f46f566b761fdc02acb8
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 14 | ||||
-rw-r--r-- | chart2/qa/extras/data/ods/multiple_axis.ods | bin | 0 -> 12864 bytes |
2 files changed, 14 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index 0dbc4703ad3a..7e4491c37083 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -97,6 +97,7 @@ public: void testTitleCharacterPropertiesXLSX(); void testPlotVisOnlyXLSX(); void testBarChartVaryColorsXLSX(); + void testMultipleAxisXLSX(); CPPUNIT_TEST_SUITE(Chart2ExportTest); CPPUNIT_TEST(testErrorBarXLSX); @@ -158,6 +159,7 @@ public: CPPUNIT_TEST(testTitleCharacterPropertiesXLSX); CPPUNIT_TEST(testPlotVisOnlyXLSX); CPPUNIT_TEST(testBarChartVaryColorsXLSX); + CPPUNIT_TEST(testMultipleAxisXLSX); CPPUNIT_TEST_SUITE_END(); protected: @@ -1445,6 +1447,18 @@ void Chart2ExportTest::testBarChartVaryColorsXLSX() assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:barChart/c:varyColors", "val", "0"); } +void Chart2ExportTest::testMultipleAxisXLSX() +{ + load("/chart2/qa/extras/data/ods/", "multiple_axis.ods"); + xmlDocPtr pXmlDoc = parseExport("xl/charts/chart", "Calc Office Open XML"); + CPPUNIT_ASSERT(pXmlDoc); + + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:scatterChart", 2); + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:scatterChart[1]/c:ser", 1); + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:scatterChart[2]/c:ser", 1); + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:valAx", 4); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ExportTest); CPPUNIT_PLUGIN_IMPLEMENT(); diff --git a/chart2/qa/extras/data/ods/multiple_axis.ods b/chart2/qa/extras/data/ods/multiple_axis.ods Binary files differnew file mode 100644 index 000000000000..7e2a505ccb84 --- /dev/null +++ b/chart2/qa/extras/data/ods/multiple_axis.ods |