diff options
author | Gokce Kuler <gokcekuler@gmail.com> | 2020-11-12 14:30:53 +0300 |
---|---|---|
committer | Gülşah Köse <gulsah.kose@collabora.com> | 2020-11-13 12:51:13 +0100 |
commit | fc12aeac3d5238607ba67238fe0da2d73b6da8ba (patch) | |
tree | 9c6f4b26836004e831fc365b9b470a2529d72f26 /sw | |
parent | abd42bdc86904d1b310e8298393c887e0c195499 (diff) |
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>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf64531.docx | bin | 0 -> 13683 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport14.cxx | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf64531.docx b/sw/qa/extras/ooxmlexport/data/tdf64531.docx Binary files differnew file mode 100644 index 000000000000..ae9d232ac92b --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf64531.docx diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport14.cxx index d7d76898c86a..db2137081b18 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. |