summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-03-10 18:02:43 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-03-10 18:17:21 +0100
commit2ce06d07bb7682dfe8483a047dfc23a3bf87a079 (patch)
treea66099965679ebb372cea3e0b7d51d0ec742f7a8 /chart2
parent2f59eae88abcdfce72e7d116a4bec4547ad43498 (diff)
test case for strict OOXML chart import
Change-Id: Ie000dda7b04615c2e79376c5da5dc96b4ea40db0
Diffstat (limited to 'chart2')
-rw-r--r--chart2/qa/extras/chart2import.cxx13
-rw-r--r--chart2/qa/extras/data/xlsx/strict_chart.xlsxbin0 -> 12779 bytes
2 files changed, 13 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2import.cxx b/chart2/qa/extras/chart2import.cxx
index 2d4259b1102b..bdebe510d781 100644
--- a/chart2/qa/extras/chart2import.cxx
+++ b/chart2/qa/extras/chart2import.cxx
@@ -34,6 +34,7 @@ public:
void testPPTChartSeries();
void testODPChartSeries();
void testBnc864396();
+ void testSimpleStrictXLSX();
CPPUNIT_TEST_SUITE(Chart2ImportTest);
CPPUNIT_TEST(Fdo60083);
@@ -55,6 +56,7 @@ public:
CPPUNIT_TEST(testPPTXChartSeries);
CPPUNIT_TEST(testODPChartSeries);
CPPUNIT_TEST(testBnc864396);
+ CPPUNIT_TEST(testSimpleStrictXLSX);
CPPUNIT_TEST_SUITE_END();
private:
@@ -298,6 +300,17 @@ void Chart2ImportTest::testBnc864396()
}
}
+void Chart2ImportTest::testSimpleStrictXLSX()
+{
+ load("/chart2/qa/extras/data/xlsx/", "strict_chart.xlsx");
+ uno::Reference< chart2::XChartDocument > xChartDoc = getChartDocFromSheet( 0, mxComponent );
+ CPPUNIT_ASSERT(xChartDoc.is());
+
+ Reference< chart2::XDataSeries > xDataSeries = getDataSeriesFromDoc( xChartDoc, 0 );
+ CPPUNIT_ASSERT(xDataSeries.is());
+
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ImportTest);
CPPUNIT_PLUGIN_IMPLEMENT();
diff --git a/chart2/qa/extras/data/xlsx/strict_chart.xlsx b/chart2/qa/extras/data/xlsx/strict_chart.xlsx
new file mode 100644
index 000000000000..43789331a5d3
--- /dev/null
+++ b/chart2/qa/extras/data/xlsx/strict_chart.xlsx
Binary files differ