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

Julien Nabet serval2412 at yahoo.fr
Sun Mar 22 11:36:28 PDT 2015


 sw/qa/extras/ooxmlexport/data/tdf89791.docx |binary
 sw/qa/extras/ooxmlexport/ooxmlexport.cxx    |    9 +++++++++
 2 files changed, 9 insertions(+)

New commits:
commit 009762b05131760144dbd2af8900ee2b84077564
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Mon Mar 9 23:39:06 2015 +0100

    Related tdf#89791: Add unit test
    
    Change-Id: Ibc9ec6c5efad30d344e73141a0b6e77b3871fc17
    Reviewed-on: https://gerrit.libreoffice.org/14818
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/sw/qa/extras/ooxmlexport/data/tdf89791.docx b/sw/qa/extras/ooxmlexport/data/tdf89791.docx
new file mode 100644
index 0000000..7ea98aa
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf89791.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index 18c11ac..948d3fb 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -667,6 +667,15 @@ DECLARE_OOXMLEXPORT_TEST(testTdf88583, "tdf88583.odt")
     CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(0x00cc00), getProperty<sal_Int32>(getParagraph(1), "FillColor"));
 }
 
+DECLARE_OOXMLEXPORT_TEST(testTdf89791, "tdf89791.docx")
+{
+    if (mbExported)
+    {
+        uno::Reference<packages::zip::XZipFileAccess2> xNameAccess = packages::zip::ZipFileAccess::createWithURL(comphelper::getComponentContext(m_xSFactory), maTempFile.GetURL());
+        CPPUNIT_ASSERT_EQUAL(false, bool(xNameAccess->hasByName("docProps/custom.xml")));
+    }
+}
+
 CPPUNIT_PLUGIN_IMPLEMENT();
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list