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@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
This commit is contained in:
parent
49dde4cd42
commit
8995956302
Binary file not shown.
Binary file not shown.
@ -2293,6 +2293,22 @@ DECLARE_OOXMLEXPORT_TEST(testTrackChangesInsertedParagraphMark, "testTrackChange
|
|||||||
assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/w:pPr/w:rPr/w:ins");
|
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")
|
DECLARE_OOXMLEXPORT_TEST(testFdo69649, "fdo69649.docx")
|
||||||
{
|
{
|
||||||
// The DOCX containing the Table of Contents was not exported with correct page nos
|
// The DOCX containing the Table of Contents was not exported with correct page nos
|
||||||
|
Loading…
x
Reference in New Issue
Block a user