Kaydet (Commit) 163c28b1 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

add test for plotVisOnly export to OOXML

Change-Id: I2dc49ec1c10da97f9b57ebff804cf403d2802beb
üst d38b6043
...@@ -95,6 +95,7 @@ public: ...@@ -95,6 +95,7 @@ public:
void testLegendManualLayoutXLSX(); void testLegendManualLayoutXLSX();
void testAxisCharacterPropertiesXLSX(); void testAxisCharacterPropertiesXLSX();
void testTitleCharacterPropertiesXLSX(); void testTitleCharacterPropertiesXLSX();
void testPlotVisOnlyXLSX();
CPPUNIT_TEST_SUITE(Chart2ExportTest); CPPUNIT_TEST_SUITE(Chart2ExportTest);
CPPUNIT_TEST(testErrorBarXLSX); CPPUNIT_TEST(testErrorBarXLSX);
...@@ -154,6 +155,7 @@ public: ...@@ -154,6 +155,7 @@ public:
CPPUNIT_TEST(testLegendManualLayoutXLSX); CPPUNIT_TEST(testLegendManualLayoutXLSX);
CPPUNIT_TEST(testAxisCharacterPropertiesXLSX); CPPUNIT_TEST(testAxisCharacterPropertiesXLSX);
CPPUNIT_TEST(testTitleCharacterPropertiesXLSX); CPPUNIT_TEST(testTitleCharacterPropertiesXLSX);
CPPUNIT_TEST(testPlotVisOnlyXLSX);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
protected: protected:
...@@ -1423,6 +1425,15 @@ void Chart2ExportTest::testTitleCharacterPropertiesXLSX() ...@@ -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"); 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_TEST_SUITE_REGISTRATION(Chart2ExportTest);
CPPUNIT_PLUGIN_IMPLEMENT(); CPPUNIT_PLUGIN_IMPLEMENT();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment