diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-04-30 05:45:56 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-04-30 08:13:20 +0200 |
commit | 163c28b117183e00aefb564fa21e4af8be6b291e (patch) | |
tree | 399fa301d266875ce695de4da980204f3b31d454 /chart2/qa/extras | |
parent | d38b6043040f778ab36522dd8697dce388c437d9 (diff) |
add test for plotVisOnly export to OOXML
Change-Id: I2dc49ec1c10da97f9b57ebff804cf403d2802beb
Diffstat (limited to 'chart2/qa/extras')
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 11 | ||||
-rw-r--r-- | chart2/qa/extras/data/xlsx/hidden_cells.xlsx | bin | 0 -> 11215 bytes |
2 files changed, 11 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index 7c14b7334fff..abc7f879c1cf 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -95,6 +95,7 @@ public: void testLegendManualLayoutXLSX(); void testAxisCharacterPropertiesXLSX(); void testTitleCharacterPropertiesXLSX(); + void testPlotVisOnlyXLSX(); CPPUNIT_TEST_SUITE(Chart2ExportTest); CPPUNIT_TEST(testErrorBarXLSX); @@ -154,6 +155,7 @@ public: CPPUNIT_TEST(testLegendManualLayoutXLSX); CPPUNIT_TEST(testAxisCharacterPropertiesXLSX); CPPUNIT_TEST(testTitleCharacterPropertiesXLSX); + CPPUNIT_TEST(testPlotVisOnlyXLSX); CPPUNIT_TEST_SUITE_END(); protected: @@ -1423,6 +1425,15 @@ void Chart2ExportTest::testTitleCharacterPropertiesXLSX() assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:title/c:tx/c:rich/a:p/a:r/a:rPr", "b", "1"); } +void Chart2ExportTest::testPlotVisOnlyXLSX() +{ + load("/chart2/qa/extras/data/xlsx/", "hidden_cells.xlsx"); + xmlDocPtr pXmlDoc = parseExport("xl/charts/chart", "Calc Office Open XML"); + CPPUNIT_ASSERT(pXmlDoc); + + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotVisOnly", "val", "0"); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ExportTest); CPPUNIT_PLUGIN_IMPLEMENT(); diff --git a/chart2/qa/extras/data/xlsx/hidden_cells.xlsx b/chart2/qa/extras/data/xlsx/hidden_cells.xlsx Binary files differnew file mode 100644 index 000000000000..da3e2da77ef5 --- /dev/null +++ b/chart2/qa/extras/data/xlsx/hidden_cells.xlsx |