Kaydet (Commit) 4fb32d8a authored tarafından Markus Mohrhard's avatar Markus Mohrhard

add test for tdf#90876

Change-Id: I5841f1b7b6f9ff60f9f1437b76a3e0b1b552a8a2
üst 3e2f2e56
...@@ -96,6 +96,7 @@ public: ...@@ -96,6 +96,7 @@ public:
void testAxisCharacterPropertiesXLSX(); void testAxisCharacterPropertiesXLSX();
void testTitleCharacterPropertiesXLSX(); void testTitleCharacterPropertiesXLSX();
void testPlotVisOnlyXLSX(); void testPlotVisOnlyXLSX();
void testBarChartVaryColorsXLSX();
CPPUNIT_TEST_SUITE(Chart2ExportTest); CPPUNIT_TEST_SUITE(Chart2ExportTest);
CPPUNIT_TEST(testErrorBarXLSX); CPPUNIT_TEST(testErrorBarXLSX);
...@@ -156,6 +157,7 @@ public: ...@@ -156,6 +157,7 @@ public:
CPPUNIT_TEST(testAxisCharacterPropertiesXLSX); CPPUNIT_TEST(testAxisCharacterPropertiesXLSX);
CPPUNIT_TEST(testTitleCharacterPropertiesXLSX); CPPUNIT_TEST(testTitleCharacterPropertiesXLSX);
CPPUNIT_TEST(testPlotVisOnlyXLSX); CPPUNIT_TEST(testPlotVisOnlyXLSX);
CPPUNIT_TEST(testBarChartVaryColorsXLSX);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
protected: protected:
...@@ -1434,6 +1436,15 @@ void Chart2ExportTest::testPlotVisOnlyXLSX() ...@@ -1434,6 +1436,15 @@ void Chart2ExportTest::testPlotVisOnlyXLSX()
assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotVisOnly", "val", "0"); assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotVisOnly", "val", "0");
} }
void Chart2ExportTest::testBarChartVaryColorsXLSX()
{
load("/chart2/qa/extras/data/xlsx/", "tdf90876.xlsx");
xmlDocPtr pXmlDoc = parseExport("xl/charts/chart", "Calc Office Open XML");
CPPUNIT_ASSERT(pXmlDoc);
assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:barChart/c:varyColors", "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