diff options
author | Adam Co <rattles2013@gmail.com> | 2013-12-31 15:50:13 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-01-02 08:36:32 +0000 |
commit | 1b66c17b7fa7b0c6d74d03777e24db236bb86282 (patch) | |
tree | 8f86ef6ce0fb5bdcd07db1d69a6ccc05c0db2f3b /sw | |
parent | 53745911a7055cab0ddcfc4ac221ecfaccb04902 (diff) |
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 <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/testTrackChangesInsertedParagraphMark.docx | bin | 0 -> 16376 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/testTrackChangesInsertedParagraphMark.docx b/sw/qa/extras/ooxmlexport/data/testTrackChangesInsertedParagraphMark.docx Binary files differnew file mode 100644 index 000000000000..33b4516137d3 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/testTrackChangesInsertedParagraphMark.docx diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index 77491ea853e6..187cf4f62bf8 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(); |