[Libreoffice-commits] core.git: sw/qa
Nikhil Walvekar
nikhil.walvekar at synerzip.com
Wed Nov 20 03:28:20 PST 2013
sw/qa/extras/ooxmlexport/data/para-auto-spacing.docx |binary
sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 9 +++++++--
2 files changed, 7 insertions(+), 2 deletions(-)
New commits:
commit c3702eb165ce0f0841ef1a166ae361e9616c77fb
Author: Nikhil Walvekar <nikhil.walvekar at synerzip.com>
Date: Tue Nov 19 14:18:26 2013 +0530
DOCX: Enhacing unit test para auto spacing
Conflicts:
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Change-Id: I589b76d0229a3dc4b5822e14399f7dbd9e7a31f8
Reviewed-on: https://gerrit.libreoffice.org/6718
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/qa/extras/ooxmlexport/data/para-auto-spacing.docx b/sw/qa/extras/ooxmlexport/data/para-auto-spacing.docx
index c7604bf..3cc8bd6 100644
Binary files a/sw/qa/extras/ooxmlexport/data/para-auto-spacing.docx and b/sw/qa/extras/ooxmlexport/data/para-auto-spacing.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index 019aeb1..5390ed5 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -1909,8 +1909,13 @@ DECLARE_OOXMLEXPORT_TEST(testParaAutoSpacing, "para-auto-spacing.docx")
xmlDocPtr pXmlDoc = parseExport();
if (!pXmlDoc)
return;
- CPPUNIT_ASSERT(getXPath(pXmlDoc, "/w:document/w:body/w:p/w:pPr/w:spacing", "beforeAutospacing").match("1"));
- CPPUNIT_ASSERT(getXPath(pXmlDoc, "/w:document/w:body/w:p/w:pPr/w:spacing", "afterAutospacing").match("1"));
+ assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/w:pPr/w:spacing", "beforeAutospacing","1");
+ assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/w:pPr/w:spacing", "afterAutospacing","1");
+
+ assertXPath(pXmlDoc, "/w:document/w:body/w:p[2]/w:pPr/w:spacing", "beforeAutospacing","");
+ assertXPath(pXmlDoc, "/w:document/w:body/w:p[2]/w:pPr/w:spacing", "afterAutospacing","");
+ assertXPath(pXmlDoc, "/w:document/w:body/w:p[2]/w:pPr/w:spacing", "before","400");
+ assertXPath(pXmlDoc, "/w:document/w:body/w:p[2]/w:pPr/w:spacing", "after","400");
}
DECLARE_OOXMLEXPORT_TEST(testGIFImageCrop, "test_GIF_ImageCrop.docx")
More information about the Libreoffice-commits
mailing list