summaryrefslogtreecommitdiff
path: root/chart2/qa/extras/chart2import.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-04-17 02:42:15 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-04-17 02:44:43 +0200
commit326f8dc37bc11591e7d683b21085da7ee15b8072 (patch)
tree2159b607fe79104309650f836db77599c32cf29f /chart2/qa/extras/chart2import.cxx
parent0ce6d9bcea7c37a7cb2c42e8393e2e20780bd171 (diff)
add test case for fdo#70609
Change-Id: I85ddd43f5c8e88c6f6bf19284b0822f8bbea1d44
Diffstat (limited to 'chart2/qa/extras/chart2import.cxx')
-rw-r--r--chart2/qa/extras/chart2import.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2import.cxx b/chart2/qa/extras/chart2import.cxx
index bdebe510d781..4d7f4b0bf6a3 100644
--- a/chart2/qa/extras/chart2import.cxx
+++ b/chart2/qa/extras/chart2import.cxx
@@ -35,6 +35,7 @@ public:
void testODPChartSeries();
void testBnc864396();
void testSimpleStrictXLSX();
+ void testDelayedCellImport(); // chart range referencing content on later sheets
CPPUNIT_TEST_SUITE(Chart2ImportTest);
CPPUNIT_TEST(Fdo60083);
@@ -57,6 +58,7 @@ public:
CPPUNIT_TEST(testODPChartSeries);
CPPUNIT_TEST(testBnc864396);
CPPUNIT_TEST(testSimpleStrictXLSX);
+ CPPUNIT_TEST(testDelayedCellImport);
CPPUNIT_TEST_SUITE_END();
private:
@@ -311,6 +313,17 @@ void Chart2ImportTest::testSimpleStrictXLSX()
}
+void Chart2ImportTest::testDelayedCellImport()
+{
+ load("/chart2/qa/extras/data/xlsx/", "fdo70609.xlsx");
+ uno::Reference< chart2::XChartDocument > xChartDoc = getChartDocFromSheet( 0, mxComponent );
+ Reference< chart2::data::XDataSequence > xDataSeq =
+ getDataSequenceFromDocByRole(xChartDoc, "values-x");
+
+ OUString aRange = xDataSeq->getSourceRangeRepresentation();
+ CPPUNIT_ASSERT_EQUAL(OUString("$Sheet2.$C$5:$C$9"), aRange);
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ImportTest);
CPPUNIT_PLUGIN_IMPLEMENT();