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 <[email protected]> AuthorDate: Tue Sep 25 09:34:25 2018 +0200 Commit: Thorsten Behrens <[email protected]> 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 <[email protected]> Tested-by: Thorsten Behrens <[email protected]> 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: */ _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
