[Libreoffice-commits] core.git: Branch 'distro/lhm/libreoffice-5-2+backports' - sw/qa

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Sep 25 20:17:30 UTC 2018


 sw/qa/extras/odfexport/data/tdf118502.odt |binary
 sw/qa/extras/odfexport/odfexport.cxx      |   11 +++++++++++
 2 files changed, 11 insertions(+)

New commits:
commit d439ccc02f36de6bb598c8520177627dad3a0208
Author:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Tue Sep 25 09:34:25 2018 +0200
Commit:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Tue Sep 25 22:17:07 2018 +0200

    tdf#118502 Add unit test
    
    Change-Id: Ie92a47326bffcc19c36a601482dac674863a2e24
    Reviewed-on: https://gerrit.libreoffice.org/60960
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
    Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

diff --git a/sw/qa/extras/odfexport/data/tdf118502.odt b/sw/qa/extras/odfexport/data/tdf118502.odt
new file mode 100644
index 000000000000..45a4975e8c03
Binary files /dev/null and b/sw/qa/extras/odfexport/data/tdf118502.odt differ
diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx
index 8a3662f623a6..f5b7371e4203 100644
--- a/sw/qa/extras/odfexport/odfexport.cxx
+++ b/sw/qa/extras/odfexport/odfexport.cxx
@@ -1083,5 +1083,16 @@ DECLARE_ODFEXPORT_TEST(tdf101856, "tdf101856.odt")
     CPPUNIT_ASSERT_EQUAL(true, getProperty<bool>(xBookmark5, UNO_NAME_BOOKMARK_HIDDEN));
 }
 
+DECLARE_ODFEXPORT_TEST(tdf118502, "tdf118502.odt")
+{
+    utl::TempFile aTempFile;
+    save("writer8", aTempFile);
+
+    uno::Sequence<uno::Any> aArgs(1);
+    aArgs[0] <<= OUString(aTempFile.GetURL());
+    uno::Reference<container::XNameAccess> xNameAccess(m_xSFactory->createInstanceWithArguments("com.sun.star.packages.zip.ZipFileAccess", aArgs), uno::UNO_QUERY);
+    CPPUNIT_ASSERT_EQUAL(true, bool(xNameAccess->hasByName("Pictures/2000000200000169000000D99F3EA97BFD720EBF.eps")));
+}
+
 CPPUNIT_PLUGIN_IMPLEMENT();
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list