tdf#64531 add test for Word shows the page numbers cropped off
Change-Id: I9787ccc6d57153d15f4a780b988325a3f8546d81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105641
Tested-by: Jenkins
Reviewed-by: Gülşah Köse <gulsah.kose@collabora.com>
diff --git a/sw/qa/extras/ooxmlexport/data/tdf64531.docx b/sw/qa/extras/ooxmlexport/data/tdf64531.docx
new file mode 100644
index 0000000..ae9d232
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/tdf64531.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx
index d7d7689..db21370 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx
@@ -1276,6 +1276,14 @@ DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testRelativeAnchorHeightFromTopMarginNoHeade
assertXPath(pXmlDoc, "//SwAnchoredDrawObject/bounds", "height", "2551");
}
DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf64531,"tdf64531.docx")
{
xmlDocUniquePtr pXmlDoc= parseExport("word/document.xml");
OString sPathToTabs= "/w:document/w:body/w:sdt/w:sdtContent/w:p[2]/w:pPr/w:tabs/";
assertXPath(pXmlDoc, sPathToTabs+"w:tab[1]", "pos","720");
assertXPath(pXmlDoc, sPathToTabs+"w:tab[2]", "pos","12950");
}
DECLARE_OOXMLEXPORT_TEST(testVmlShapeTextWordWrap, "tdf97618_testVmlShapeTextWordWrap.docx")
{
// tdf#97618 The text wrapping of a shape was not handled in a canvas.