diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-04-23 01:47:53 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-04-23 01:47:53 +0200 |
commit | 2aaea67759a59579de8b8b93ba0413b64e74e20b (patch) | |
tree | 09bc5a86961599f49ce361c36d8c2bfecc516ffc /chart2/qa | |
parent | f3375fa07f27bd2ade519af3c07d69040d10eaa9 (diff) |
add test for line only chart export, related tdf#90728
Change-Id: I4c8319b1b675297c25a70584e151cf985870c0f8
Diffstat (limited to 'chart2/qa')
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 12 | ||||
-rw-r--r-- | chart2/qa/extras/data/xlsx/no_marker.xlsx | bin | 0 -> 13006 bytes |
2 files changed, 12 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index 5a3d42c73fe0..ab30664df852 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -90,6 +90,7 @@ public: void testTitleOverlayXLSX(); void testInvertIfNegativeXLSX(); void testBubble3DXLSX(); + void testNoMarkerXLSX(); CPPUNIT_TEST_SUITE(Chart2ExportTest); CPPUNIT_TEST(test); @@ -144,6 +145,7 @@ public: CPPUNIT_TEST(testTitleOverlayXLSX); CPPUNIT_TEST(testInvertIfNegativeXLSX); CPPUNIT_TEST(testBubble3DXLSX); + CPPUNIT_TEST(testNoMarkerXLSX); CPPUNIT_TEST_SUITE_END(); protected: @@ -1308,6 +1310,16 @@ void Chart2ExportTest::testBubble3DXLSX() assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:bubbleChart/c:bubble3D", "val", "0"); } +void Chart2ExportTest::testNoMarkerXLSX() +{ + load("/chart2/qa/extras/data/xlsx/", "no_marker.xlsx"); + xmlDocPtr pXmlDoc = parseExport("xl/charts/chart", "Calc Office Open XML"); + CPPUNIT_ASSERT(pXmlDoc); + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:lineChart/c:ser[1]/c:marker/c:symbol", "val", "none"); + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:lineChart/c:ser[2]/c:marker/c:symbol", "val", "none"); + assertXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:lineChart/c:marker", "val", "0"); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ExportTest); CPPUNIT_PLUGIN_IMPLEMENT(); diff --git a/chart2/qa/extras/data/xlsx/no_marker.xlsx b/chart2/qa/extras/data/xlsx/no_marker.xlsx Binary files differnew file mode 100644 index 000000000000..228c4590fa3b --- /dev/null +++ b/chart2/qa/extras/data/xlsx/no_marker.xlsx |