[Libreoffice-commits] core.git: sw/qa
Adam Co
rattles2013 at gmail.com
Wed Feb 12 01:00:40 PST 2014
sw/qa/extras/ooxmlexport/data/testTrackChangesDeletedTableRow.docx |binary
sw/qa/extras/ooxmlexport/data/testTrackChangesInsertedTableRow.docx |binary
sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 16 ++++++++++
3 files changed, 16 insertions(+)
New commits:
commit 89959563022ff2385d80ff481bbeed21b86f9c2c
Author: Adam Co <rattles2013 at gmail.com>
Date: Tue Feb 4 15:02:08 2014 +0200
Add unit-tests for DOCX preservation of 'table row redline'
Added unit-tests to make sure that 'table row redlines'
(e.g. - table row was inserted \ removed) are being round
tripped correctly from a DOCX file.
Change-Id: I369dd32e7372d0cf0add19197f07d0ad604e9ef0
Reviewed-on: https://gerrit.libreoffice.org/7849
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>
diff --git a/sw/qa/extras/ooxmlexport/data/testTrackChangesDeletedTableRow.docx b/sw/qa/extras/ooxmlexport/data/testTrackChangesDeletedTableRow.docx
new file mode 100644
index 0000000..71c4998
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/testTrackChangesDeletedTableRow.docx differ
diff --git a/sw/qa/extras/ooxmlexport/data/testTrackChangesInsertedTableRow.docx b/sw/qa/extras/ooxmlexport/data/testTrackChangesInsertedTableRow.docx
new file mode 100644
index 0000000..a7c0f56
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/testTrackChangesInsertedTableRow.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index 232c6e8..a41f204 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -2293,6 +2293,22 @@ DECLARE_OOXMLEXPORT_TEST(testTrackChangesInsertedParagraphMark, "testTrackChange
assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/w:pPr/w:rPr/w:ins");
}
+DECLARE_OOXMLEXPORT_TEST(testTrackChangesDeletedTableRow, "testTrackChangesDeletedTableRow.docx")
+{
+ xmlDocPtr pXmlDoc = parseExport("word/document.xml");
+ if (!pXmlDoc)
+ return;
+ assertXPath(pXmlDoc, "/w:document/w:body/w:tbl/w:tr[2]/w:trPr/w:del");
+}
+
+DECLARE_OOXMLEXPORT_TEST(testTrackChangesInsertedTableRow, "testTrackChangesInsertedTableRow.docx")
+{
+ xmlDocPtr pXmlDoc = parseExport("word/document.xml");
+ if (!pXmlDoc)
+ return;
+ assertXPath(pXmlDoc, "/w:document/w:body/w:tbl/w:tr[2]/w:trPr/w:ins");
+}
+
DECLARE_OOXMLEXPORT_TEST(testFdo69649, "fdo69649.docx")
{
// The DOCX containing the Table of Contents was not exported with correct page nos
More information about the Libreoffice-commits
mailing list