diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-04-20 06:19:38 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-04-21 06:44:25 +0200 |
commit | c5402612bb6375d03786f1e9983cb605a3ac4c02 (patch) | |
tree | a79af129132f79c279a55ff1d8706844278da39b | |
parent | 21a017926433853e38f6e45c7bd0c29f5fc8fd94 (diff) |
add test for title overlay export
Change-Id: I679b2a4597e37f1e902b85ea5239df0eec33fa8b
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 10 | ||||
-rw-r--r-- | chart2/qa/extras/data/xlsx/chart_title.xlsx | bin | 0 -> 13085 bytes |
2 files changed, 10 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index 1b4b0a325bc7..42dd125a4986 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -87,6 +87,7 @@ public: void testRoundedCornersXLSX(); void testAxisNumberFormatXLSX(); void testDataLabelDefaultValuesXLSX(); + void testTitleOverlayXLSX(); CPPUNIT_TEST_SUITE(Chart2ExportTest); CPPUNIT_TEST(test); @@ -138,6 +139,7 @@ public: CPPUNIT_TEST(testRoundedCornersXLSX); CPPUNIT_TEST(testAxisNumberFormatXLSX); CPPUNIT_TEST(testDataLabelDefaultValuesXLSX); + CPPUNIT_TEST(testTitleOverlayXLSX); CPPUNIT_TEST_SUITE_END(); protected: @@ -1276,6 +1278,14 @@ void Chart2ExportTest::testDataLabelDefaultValuesXLSX() assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:barChart/c:ser/c:dLbls/c:dLblPos", "val", "outEnd"); } +void Chart2ExportTest::testTitleOverlayXLSX() +{ + load("/chart2/qa/extras/data/xlsx/", "chart_title.xlsx"); + xmlDocPtr pXmlDoc = parseExport("xl/charts/chart", "Calc Office Open XML"); + CPPUNIT_ASSERT(pXmlDoc); + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:title/c:overlay", "val", "0"); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ExportTest); CPPUNIT_PLUGIN_IMPLEMENT(); diff --git a/chart2/qa/extras/data/xlsx/chart_title.xlsx b/chart2/qa/extras/data/xlsx/chart_title.xlsx Binary files differnew file mode 100644 index 000000000000..0b798554627f --- /dev/null +++ b/chart2/qa/extras/data/xlsx/chart_title.xlsx |