sw/qa/extras/ooxmlexport/data/testTrackChangesInsertedParagraphMark.docx |binary sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 8 ++++++++ 2 files changed, 8 insertions(+)
New commits: commit 1b66c17b7fa7b0c6d74d03777e24db236bb86282 Author: Adam Co <rattles2...@gmail.com> Date: Tue Dec 31 15:50:13 2013 +0200 Add unit-test for 'track changes - inserted paragraph mark' preservation This is a unit-test added to complement the patch that added support for the preservation of 'Track Changes - Inserted Paragraph Mark' from a DOCX file. Change-Id: I21e67b3ed8c98e8aba2c633dc6a549786ae44322 Reviewed-on: https://gerrit.libreoffice.org/7241 Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> Tested-by: Miklos Vajna <vmik...@collabora.co.uk> diff --git a/sw/qa/extras/ooxmlexport/data/testTrackChangesInsertedParagraphMark.docx b/sw/qa/extras/ooxmlexport/data/testTrackChangesInsertedParagraphMark.docx new file mode 100644 index 0000000..33b4516 Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/testTrackChangesInsertedParagraphMark.docx differ diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index 77491ea..187cf4f 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -2183,6 +2183,14 @@ DECLARE_OOXMLEXPORT_TEST(testTrackChangesDeletedParagraphMark, "testTrackChanges assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/w:pPr/w:rPr/w:del"); } +DECLARE_OOXMLEXPORT_TEST(testTrackChangesInsertedParagraphMark, "testTrackChangesInsertedParagraphMark.docx") +{ + xmlDocPtr pXmlDoc = parseExport("word/document.xml"); + if (!pXmlDoc) + return; + assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/w:pPr/w:rPr/w:ins"); +} + #endif CPPUNIT_PLUGIN_IMPLEMENT(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits