diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-04-20 07:40:10 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-04-21 06:44:27 +0200 |
commit | 0c8e924a078f7ac70643be3965ff0b3a0eed240a (patch) | |
tree | 664a1f20dc1d2529c5c9d6c97b2e32b074ba86cb /chart2/qa | |
parent | 1797441c7db545b8f03ed1565d26d296cae5d7ab (diff) |
add test case for no invertIfNegative export, related tdf#90733
Change-Id: I9980b280236f858e6c88ef4ef0ba8cb9d2750b0e
Diffstat (limited to 'chart2/qa')
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 10 | ||||
-rw-r--r-- | chart2/qa/extras/data/xlsx/bar_chart_simple.xlsx | bin | 0 -> 12966 bytes |
2 files changed, 10 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index 0d9f7adf2113..b20a422c2db3 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -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(); diff --git a/chart2/qa/extras/data/xlsx/bar_chart_simple.xlsx b/chart2/qa/extras/data/xlsx/bar_chart_simple.xlsx Binary files differnew file mode 100644 index 000000000000..52040bf2cd4c --- /dev/null +++ b/chart2/qa/extras/data/xlsx/bar_chart_simple.xlsx |