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

add test for autoTitleDeleted export

Change-Id: I152b6625b5ae1ec40e375bad2f144978dc7d8bba
üst ec2c8a60
......@@ -80,6 +80,7 @@ public:
void testDataLabelAreaChartDOCX();
void testDataLabelDefaultLineChartDOCX();
void testFdo83058dlblPos();
void testAutoTitleDelXLSX();
CPPUNIT_TEST_SUITE(Chart2ExportTest);
CPPUNIT_TEST(test);
......@@ -125,6 +126,7 @@ public:
CPPUNIT_TEST(testDataLabelAreaChartDOCX);
CPPUNIT_TEST(testDataLabelDefaultLineChartDOCX);
CPPUNIT_TEST(testFdo83058dlblPos);
CPPUNIT_TEST(testAutoTitleDelXLSX);
CPPUNIT_TEST_SUITE_END();
protected:
......@@ -1199,6 +1201,14 @@ void Chart2ExportTest::testFdo83058dlblPos()
assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:barChart/c:ser[1]/c:dLbls[1]/c:dLbl[5]/c:dLblPos", "val", "outEnd");
}
void Chart2ExportTest::testAutoTitleDelXLSX()
{
load("/chart2/qa/extras/data/xlsx/", "autotitledel_2007.xlsx");
xmlDocPtr pXmlDoc = parseExport("xl/charts/chart","Calc Office Open XML");
CPPUNIT_ASSERT(pXmlDoc);
assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:autoTitleDeleted", "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