Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


Hi Miklos,


http://opengrok.libreoffice.org/xref/core/sw/qa/extras/README describes
how the sw export tests work. So, to manually reproduce: open the docx
file, save it as docx, then open both the original and the saved file in
Word, and make sure that the asserted aspect does not differ (here: one
of the images became invisible).



Thanks! I had tried that initially, but now I think I understand the source
of my confusion: the "wrong" value arises not from the export, but from the
subsequent import. Thus it is only visible in the temporary file that the
unit test uses after importing the exported version.

More specifically, when I export manually, the XML shows the exact value of
the original document, which would pass the test, of course. It is only
when that is imported that a different value appears. A diff between the
exported version and the temporary file that the unit test generates (which
is used in the unit test to check the value) shows:

$ diff saved/word/formatted.xml unit/word/formatted.xml
35c35
<                         <a:srcRect l="17662" t="0" r="17662" b="0"/>
---
                        <a:srcRect l="22452" t="0" r="22452" b="0"/>

This probably has to do with the fact that the exporter changes a few tags,
so that might be interpreted somewhat differently later on. I'm actually
not sure if the temporary file that I am talking about is actually an
imported version, but it is the only thing that makes sense to me.

More to the point, I opened both documents on Word and they are identical,
no invisible images at all. So maybe it is OK?

Thanks for the help.

Regards,
Renato.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.