[Libreoffice-commits] core.git: chart2/qa

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Nov 21 00:38:04 UTC 2018


 chart2/qa/extras/chart2export.cxx       |   14 ++++++++++++++
 chart2/qa/extras/data/odt/tdf108022.odt |binary
 2 files changed, 14 insertions(+)

New commits:
commit 0abce68927f45673b73d8f806e108a51a36fb543
Author:     Markus Mohrhard <markus.mohrhard at googlemail.com>
AuthorDate: Tue Nov 20 23:05:08 2018 +0100
Commit:     Markus Mohrhard <markus.mohrhard at googlemail.com>
CommitDate: Wed Nov 21 01:37:38 2018 +0100

    add test for tdf108022
    
    Change-Id: I00868938738e30afc2b212c01ed36d5223401ceb
    Reviewed-on: https://gerrit.libreoffice.org/63683
    Tested-by: Jenkins
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx
index b07e98661574..fbbfdaa45277 100644
--- a/chart2/qa/extras/chart2export.cxx
+++ b/chart2/qa/extras/chart2export.cxx
@@ -122,6 +122,7 @@ public:
     void testChartTitlePropertiesBitmapFillPPTX();
     void testTdf116163();
     void testTdf119029();
+    void testTdf108022();
 
     CPPUNIT_TEST_SUITE(Chart2ExportTest);
     CPPUNIT_TEST(testErrorBarXLSX);
@@ -206,6 +207,7 @@ public:
     CPPUNIT_TEST(testChartTitlePropertiesBitmapFillPPTX);
     CPPUNIT_TEST(testTdf116163);
     CPPUNIT_TEST(testTdf119029);
+    CPPUNIT_TEST(testTdf108022);
     CPPUNIT_TEST_SUITE_END();
 
 protected:
@@ -1937,6 +1939,18 @@ void Chart2ExportTest::testTdf119029()
                 "-5400000");
 }
 
+void Chart2ExportTest::testTdf108022()
+{
+    load("/chart2/qa/extras/data/odt/", "tdf108022.odt");
+    reload("Office Open XML Text");
+
+    // assert we really have two charts
+    Reference<chart2::XChartDocument> xChartDoc1(getChartDocFromWriter(0), uno::UNO_QUERY);
+    CPPUNIT_ASSERT(xChartDoc1.is());
+    Reference<chart2::XChartDocument> xChartDoc2(getChartDocFromWriter(1), uno::UNO_QUERY);
+    CPPUNIT_ASSERT(xChartDoc2.is());
+}
+
 CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ExportTest);
 
 CPPUNIT_PLUGIN_IMPLEMENT();
diff --git a/chart2/qa/extras/data/odt/tdf108022.odt b/chart2/qa/extras/data/odt/tdf108022.odt
new file mode 100644
index 000000000000..b8659ec32c60
Binary files /dev/null and b/chart2/qa/extras/data/odt/tdf108022.odt differ


More information about the Libreoffice-commits mailing list