[Libreoffice-commits] core.git: sw/qa

Gokce Kuler (via logerrit) logerrit at kemper.freedesktop.org
Fri Nov 13 11:51:56 UTC 2020


 sw/qa/extras/ooxmlexport/data/tdf64531.docx |binary
 sw/qa/extras/ooxmlexport/ooxmlexport14.cxx  |    8 ++++++++
 2 files changed, 8 insertions(+)

New commits:
commit fc12aeac3d5238607ba67238fe0da2d73b6da8ba
Author:     Gokce Kuler <gokcekuler at gmail.com>
AuthorDate: Thu Nov 12 14:30:53 2020 +0300
Commit:     Gülşah Köse <gulsah.kose at collabora.com>
CommitDate: Fri Nov 13 12:51:13 2020 +0100

    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 at 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 000000000000..ae9d232ac92b
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf64531.docx differ
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.


More information about the Libreoffice-commits mailing list