summaryrefslogtreecommitdiff
path: root/chart2/qa
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2017-08-08 15:25:28 +0200
committerMarco Cecchetti <mrcekets@gmail.com>2017-08-08 19:33:23 +0200
commit3b66be90d4fffed9cbe61ba99b4ad94daa04f68c (patch)
tree07ab3cecf3b81156dad46a91810dacbdced0520b /chart2/qa
parent05c3791710397346aae0b2a9cca1792567941d62 (diff)
unit test for tdf#111173
Change-Id: I9b9a1f3c38c1402c436fd6815916be3dabf71447 Reviewed-on: https://gerrit.libreoffice.org/40883 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Diffstat (limited to 'chart2/qa')
-rw-r--r--chart2/qa/extras/chart2import.cxx10
-rwxr-xr-xchart2/qa/extras/data/xlsx/tdf111173.xlsxbin0 -> 16013 bytes
2 files changed, 10 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2import.cxx b/chart2/qa/extras/chart2import.cxx
index 7cb69a3398ce..9b95105640f8 100644
--- a/chart2/qa/extras/chart2import.cxx
+++ b/chart2/qa/extras/chart2import.cxx
@@ -96,6 +96,8 @@ public:
void testTdf90510(); // Pie chart label placement settings(XLS)
void testTdf109858(); // Pie chart label placement settings(XLSX)
+ void testTdf111173();
+
void testInternalDataProvider();
CPPUNIT_TEST_SUITE(Chart2ImportTest);
@@ -152,6 +154,7 @@ public:
CPPUNIT_TEST(testAxisTitleRotationXLSX);
CPPUNIT_TEST(testTdf90510);
CPPUNIT_TEST(testTdf109858);
+ CPPUNIT_TEST(testTdf111173);
CPPUNIT_TEST(testInternalDataProvider);
@@ -1277,6 +1280,13 @@ void Chart2ImportTest::testTdf109858()
CPPUNIT_ASSERT_EQUAL_MESSAGE( "Data labels should be placed outside", chart::DataLabelPlacement::OUTSIDE, nLabelPlacement );
}
+void Chart2ImportTest::testTdf111173()
+{
+ load("/chart2/qa/extras/data/xlsx/", "tdf111173.xlsx");
+ uno::Reference< chart::XChartDocument > xChart1Doc( getChartCompFromSheet( 0, mxComponent ), UNO_QUERY_THROW );
+ CPPUNIT_ASSERT_MESSAGE( "failed to load chart", xChart1Doc.is() );
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ImportTest);
CPPUNIT_PLUGIN_IMPLEMENT();
diff --git a/chart2/qa/extras/data/xlsx/tdf111173.xlsx b/chart2/qa/extras/data/xlsx/tdf111173.xlsx
new file mode 100755
index 000000000000..e62c6747b5f7
--- /dev/null
+++ b/chart2/qa/extras/data/xlsx/tdf111173.xlsx
Binary files differ