Add unit-tests for DOCX preservation of 'table cell redline'
Added unit-tests to make sure that 'table cell redlines' (e.g. - table cell was inserted \ removed) are being round tripped correctly from a DOCX file. Change-Id: I773cb51a39654d2640200489d5199361b56396c7 Reviewed-on: https://gerrit.libreoffice.org/7878 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -2309,6 +2309,22 @@ DECLARE_OOXMLEXPORT_TEST(testTrackChangesInsertedTableRow, "testTrackChangesInse
|
||||
assertXPath(pXmlDoc, "/w:document/w:body/w:tbl/w:tr[2]/w:trPr/w:ins");
|
||||
}
|
||||
|
||||
DECLARE_OOXMLEXPORT_TEST(testTrackChangesDeletedTableCell, "testTrackChangesDeletedTableCell.docx")
|
||||
{
|
||||
xmlDocPtr pXmlDoc = parseExport("word/document.xml");
|
||||
if (!pXmlDoc)
|
||||
return;
|
||||
assertXPath(pXmlDoc, "/w:document/w:body/w:tbl/w:tr[3]/w:tc/w:tcPr/w:cellDel");
|
||||
}
|
||||
|
||||
DECLARE_OOXMLEXPORT_TEST(testTrackChangesInsertedTableCell, "testTrackChangesInsertedTableCell.docx")
|
||||
{
|
||||
xmlDocPtr pXmlDoc = parseExport("word/document.xml");
|
||||
if (!pXmlDoc)
|
||||
return;
|
||||
assertXPath(pXmlDoc, "/w:document/w:body/w:tbl/w:tr[3]/w:tc/w:tcPr/w:cellIns");
|
||||
}
|
||||
|
||||
DECLARE_OOXMLEXPORT_TEST(testFdo69649, "fdo69649.docx")
|
||||
{
|
||||
// The DOCX containing the Table of Contents was not exported with correct page nos
|
||||
|
Reference in New Issue
Block a user