[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - sw/qa
Ashod Nakashian (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 3 11:40:38 UTC 2019
sw/qa/extras/ooxmlexport/ooxmlexport9.cxx | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
New commits:
commit 00e36fa26005128e3fcd8d4eef15577ed58c1346
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Wed Apr 3 00:23:23 2019 -0400
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Tue Sep 3 13:39:48 2019 +0200
sw: oox: unit-test for default Content_Types
Change-Id: I59432487d1b995a4b3dd28396860990b73ad4252
Reviewed-on: https://gerrit.libreoffice.org/70176
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
(cherry picked from commit 5416cfcd31c3561b89ea8c030f15609fca02bca0)
Reviewed-on: https://gerrit.libreoffice.org/78444
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Tested-by: Andras Timar <andras.timar at collabora.com>
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx
index a44c8f78d9cf..70c033794db6 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx
@@ -85,6 +85,32 @@ DECLARE_OOXMLEXPORT_TEST(testDocm, "hello.docm")
"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml");
}
+DECLARE_OOXMLEXPORT_TEST(testDefaultContentTypes, "fdo55381.docx")
+{
+ if (xmlDocPtr pXmlDoc = parseExport("[Content_Types].xml"))
+ {
+ assertXPath(pXmlDoc,
+ "/ContentType:Types/ContentType:Default[@Extension='xml']",
+ "ContentType",
+ "application/xml");
+
+ assertXPath(pXmlDoc,
+ "/ContentType:Types/ContentType:Default[@Extension='rels']",
+ "ContentType",
+ "application/vnd.openxmlformats-package.relationships+xml");
+
+ assertXPath(pXmlDoc,
+ "/ContentType:Types/ContentType:Default[@Extension='png']",
+ "ContentType",
+ "image/png");
+
+ assertXPath(pXmlDoc,
+ "/ContentType:Types/ContentType:Default[@Extension='jpeg']",
+ "ContentType",
+ "image/jpeg");
+ }
+}
+
DECLARE_SW_ROUNDTRIP_TEST(testDocmSave, "hello.docm", nullptr, DocmTest)
{
// This was
More information about the Libreoffice-commits
mailing list