diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-04-27 06:29:42 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-04-27 06:26:19 +0200 |
commit | 84fba0e79f319e9279ac1a6f50588a687b018ddb (patch) | |
tree | cd70fb8c85d7d950334602c6af5cbb57674e5053 /chart2/qa/extras | |
parent | ea4e3d6970aaa2ff567c027bf3b5a6902c9dabed (diff) |
add test for title character properties, tdf#90532
Change-Id: Ib9117e73a446e0e369bae0d9cfdd8bd73e3c237c
Diffstat (limited to 'chart2/qa/extras')
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 15 | ||||
-rw-r--r-- | chart2/qa/extras/data/xlsx/title_character_properties.xlsx | bin | 0 -> 10355 bytes |
2 files changed, 15 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index f31d0bfb387f..7c14b7334fff 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -94,6 +94,7 @@ public: void testPlotAreaManualLayoutXLSX(); void testLegendManualLayoutXLSX(); void testAxisCharacterPropertiesXLSX(); + void testTitleCharacterPropertiesXLSX(); CPPUNIT_TEST_SUITE(Chart2ExportTest); CPPUNIT_TEST(testErrorBarXLSX); @@ -152,6 +153,7 @@ public: CPPUNIT_TEST(testPlotAreaManualLayoutXLSX); CPPUNIT_TEST(testLegendManualLayoutXLSX); CPPUNIT_TEST(testAxisCharacterPropertiesXLSX); + CPPUNIT_TEST(testTitleCharacterPropertiesXLSX); CPPUNIT_TEST_SUITE_END(); protected: @@ -1408,6 +1410,19 @@ void Chart2ExportTest::testAxisCharacterPropertiesXLSX() assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:valAx/c:txPr/a:p/a:pPr/a:defRPr/a:solidFill/a:srgbClr", "val", "ff0000"); } +void Chart2ExportTest::testTitleCharacterPropertiesXLSX() +{ + load("/chart2/qa/extras/data/xlsx/", "title_character_properties.xlsx"); + xmlDocPtr pXmlDoc = parseExport("xl/charts/chart", "Calc Office Open XML"); + CPPUNIT_ASSERT(pXmlDoc); + + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:title/c:tx/c:rich/a:p/a:pPr/a:defRPr", "sz", "2400"); + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:title/c:tx/c:rich/a:p/a:pPr/a:defRPr", "b", "1"); + + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:title/c:tx/c:rich/a:p/a:r/a:rPr", "sz", "2400"); + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:title/c:tx/c:rich/a:p/a:r/a:rPr", "b", "1"); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ExportTest); CPPUNIT_PLUGIN_IMPLEMENT(); diff --git a/chart2/qa/extras/data/xlsx/title_character_properties.xlsx b/chart2/qa/extras/data/xlsx/title_character_properties.xlsx Binary files differnew file mode 100644 index 000000000000..2a239936ca24 --- /dev/null +++ b/chart2/qa/extras/data/xlsx/title_character_properties.xlsx |