Kaydet (Commit) 0c8e924a authored tarafından Markus Mohrhard's avatar Markus Mohrhard

add test case for no invertIfNegative export, related tdf#90733

Change-Id: I9980b280236f858e6c88ef4ef0ba8cb9d2750b0e
üst 1797441c
......@@ -88,6 +88,7 @@ public:
void testAxisNumberFormatXLSX();
void testDataLabelDefaultValuesXLSX();
void testTitleOverlayXLSX();
void testInvertIfNegativeXLSX();
CPPUNIT_TEST_SUITE(Chart2ExportTest);
CPPUNIT_TEST(test);
......@@ -140,6 +141,7 @@ public:
CPPUNIT_TEST(testAxisNumberFormatXLSX);
CPPUNIT_TEST(testDataLabelDefaultValuesXLSX);
CPPUNIT_TEST(testTitleOverlayXLSX);
CPPUNIT_TEST(testInvertIfNegativeXLSX);
CPPUNIT_TEST_SUITE_END();
protected:
......@@ -1288,6 +1290,14 @@ void Chart2ExportTest::testTitleOverlayXLSX()
assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:title/c:overlay", "val", "0");
}
void Chart2ExportTest::testInvertIfNegativeXLSX()
{
load("/chart2/qa/extras/data/xlsx/", "bar_chart_simple.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:ser/c:invertIfNegative", "val", "0");
}
CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ExportTest);
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