<div class="gmail_quote"><div>Hi Miklos,</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<a href="http://opengrok.libreoffice.org/xref/core/sw/qa/extras/README" target="_blank">http://opengrok.libreoffice.<u></u>org/xref/core/sw/qa/extras/<u></u>README</a> describes<br>
how the sw export tests work. So, to manually reproduce: open the docx<br>
file, save it as docx, then open both the original and the saved file in<br>
Word, and make sure that the asserted aspect does not differ (here: one<br>
of the images became invisible).<br>
<br><br></blockquote><div><br></div><div>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.</div><div><br></div><div>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:</div><div><br></div><div><div>$ diff saved/word/formatted.xml unit/word/formatted.xml </div><div>35c35</div><div><                         <a:srcRect l="17662" t="0" r="17662" b="0"/></div><div>---</div><div>>                         <a:srcRect l="22452" t="0" r="22452" b="0"/></div></div><div><br></div><div>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.</div><div><br></div><div>More to the point, I opened both documents on Word and they are identical, no invisible images at all. So maybe it is OK?</div><div><br></div><div>Thanks for the help.</div><div><br></div><div>Regards,</div><div>Renato.</div></div>