diff options
author | Ravindra Vidhate <ravindra.vidhate@synerzip.com> | 2014-04-15 15:24:40 +0530 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-16 15:53:43 +0000 |
commit | ccfc02f7691848284403d339ee17054169fbff1d (patch) | |
tree | 0980782092a453172cf0501bde1c89b666bd6028 /sw/qa | |
parent | 421c78e05fcb51e944f9829010bc79fd7d6ea76b (diff) |
fdo#77476:FILE_SAVE : 'TIF' is changed to 'TIFF' in RT
1. Open the attached file in LO which has images [.TIF] format
2. Save the document as DOCX
3. Open the saved document in MS-Office or extract the content of the saved docx file.
In [Content_Types].xml , .tif extension is changed to .tiff.
Change-Id: I73baea9ad6cd991b04d47e23865b77432127a510
Reviewed-on: https://gerrit.libreoffice.org/9010
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/fdo77476.docx | bin | 0 -> 935746 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 11 |
2 files changed, 11 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/fdo77476.docx b/sw/qa/extras/ooxmlexport/data/fdo77476.docx Binary files differnew file mode 100644 index 000000000000..08c38b066b2b --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/fdo77476.docx diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index a3853cf9278c..1e4067e8ab9f 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -3130,6 +3130,17 @@ DECLARE_OOXMLEXPORT_TEST(testFDO76597, "fdo76597.docx") assertXPath(pXmlDoc, "/w:document/w:body/w:p[4]/w:pPr/w:spacing", "before", "96"); assertXPath(pXmlDoc, "/w:document/w:body/w:p[4]/w:pPr/w:spacing", "after", "120"); } + +DECLARE_OOXMLEXPORT_TEST(testContentTypeTIF, "fdo77476.docx") +{ + xmlDocPtr pXmlDoc = parseExport("[Content_Types].xml"); + + if (!pXmlDoc) + return; + + assertXPath(pXmlDoc, "/ContentType:Types/ContentType:Override[@ContentType='image/tif']", "PartName", "/word/media/image1.tif"); +} + #endif CPPUNIT_PLUGIN_IMPLEMENT(); |