summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-03-09 23:39:06 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-22 18:34:57 +0000
commit009762b05131760144dbd2af8900ee2b84077564 (patch)
treeedc889ba87f1f71358c7fcbdb198ebfde7fbb01e
parent48b1d2b120005ddb97c14673b403b8f9c3fd9606 (diff)
Related tdf#89791: Add unit test
Change-Id: Ibc9ec6c5efad30d344e73141a0b6e77b3871fc17 Reviewed-on: https://gerrit.libreoffice.org/14818 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--sw/qa/extras/ooxmlexport/data/tdf89791.docxbin0 -> 3989 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport.cxx9
2 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf89791.docx b/sw/qa/extras/ooxmlexport/data/tdf89791.docx
new file mode 100644
index 000000000000..7ea98aa58125
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/tdf89791.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index 18c11ac11c2b..948d3fbaf6d5 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: */