summaryrefslogtreecommitdiff
path: root/chart2/qa/extras
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-06-22 05:04:31 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-06-22 05:05:01 +0200
commit113866583c5a34b9242aeb9040c4ce80e65da1ba (patch)
treea1a226a1b442f98d41401fddc62fe8d8d817f7b5 /chart2/qa/extras
parent2f74e52a6efe7a51d6575cbb9b5f30b1ad99ee7c (diff)
add test case for fdo#78080
Change-Id: If676eb03f5bd19f8abf13d1d7826d500d51e542e
Diffstat (limited to 'chart2/qa/extras')
-rw-r--r--chart2/qa/extras/chart2import.cxx13
-rw-r--r--chart2/qa/extras/data/xlsx/fdo78080.xlsxbin0 -> 7020 bytes
2 files changed, 13 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2import.cxx b/chart2/qa/extras/chart2import.cxx
index 01b92817de08..d5a42a1d9b0f 100644
--- a/chart2/qa/extras/chart2import.cxx
+++ b/chart2/qa/extras/chart2import.cxx
@@ -40,6 +40,7 @@ public:
void testSimpleStrictXLSX();
void testDelayedCellImport(); // chart range referencing content on later sheets
void testFlatODSStackedColumnChart();
+ void testFdo78080();
CPPUNIT_TEST_SUITE(Chart2ImportTest);
CPPUNIT_TEST(Fdo60083);
@@ -65,6 +66,7 @@ public:
CPPUNIT_TEST(testSimpleStrictXLSX);
CPPUNIT_TEST(testDelayedCellImport);
CPPUNIT_TEST(testFlatODSStackedColumnChart);
+ CPPUNIT_TEST(testFdo78080);
CPPUNIT_TEST_SUITE_END();
private:
@@ -370,6 +372,17 @@ void Chart2ImportTest::testFlatODSStackedColumnChart()
CPPUNIT_ASSERT_EQUAL(sal_Int32(5), aSeriesSeq.getLength());
}
+void Chart2ImportTest::testFdo78080()
+{
+ load("/chart2/qa/extras/data/xlsx/", "fdo78080.xlsx");
+ Reference<chart2::XChartDocument> xChartDoc = getChartDocFromSheet(0, mxComponent);
+ CPPUNIT_ASSERT(xChartDoc.is());
+
+ Reference<chart2::XTitled> xTitled(xChartDoc, uno::UNO_QUERY_THROW);
+ Reference<chart2::XTitle> xTitle = xTitled->getTitleObject();
+ CPPUNIT_ASSERT(!xTitle.is());
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ImportTest);
CPPUNIT_PLUGIN_IMPLEMENT();
diff --git a/chart2/qa/extras/data/xlsx/fdo78080.xlsx b/chart2/qa/extras/data/xlsx/fdo78080.xlsx
new file mode 100644
index 000000000000..c4a4e3e003ef
--- /dev/null
+++ b/chart2/qa/extras/data/xlsx/fdo78080.xlsx
Binary files differ