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

Tamas Bunth tamas.bunth at collabora.co.uk
Sat Dec 16 11:34:08 UTC 2017


 sw/qa/extras/ooxmlexport/data/parasplit-on-section-border.odt |binary
 sw/qa/extras/ooxmlexport/ooxmlexport11.cxx                    |    6 +++---
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit cf7056223c004ef905f66bf11f9af8e2b057df27
Author: Tamas Bunth <tamas.bunth at collabora.co.uk>
Date:   Fri Dec 15 11:56:21 2017 +0100

    sw: Modifiy paragraph-split unit test to also..
    
    ..assert that no section break is inserted after the paragraph which had
    to be split and which contains a section break between its parts.
    
    Change-Id: I5bf2f313202c1dcc2acdf66b2457152b8d44be81
    Reviewed-on: https://gerrit.libreoffice.org/46525
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tamás Bunth <btomi96 at gmail.com>

diff --git a/sw/qa/extras/ooxmlexport/data/parasplit-on-section-border.odt b/sw/qa/extras/ooxmlexport/data/parasplit-on-section-border.odt
index 1d0b96f8bb96..8a6e4aeb4704 100644
Binary files a/sw/qa/extras/ooxmlexport/data/parasplit-on-section-border.odt and b/sw/qa/extras/ooxmlexport/data/parasplit-on-section-border.odt differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx
index d705a7e013be..c750e5b74e50 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx
@@ -106,10 +106,10 @@ DECLARE_OOXMLEXPORT_TEST(testParagraphSplitOnSectionBorder, "parasplit-on-sectio
     if(!pXmlDoc)
         return;
 
-    // Test document has only one paragraph. After splitting, it should contain
-    // two of them.
+    // Test document has only two paragraphs. After splitting, it should contain
+    // three of them.
     assertXPath(pXmlDoc, "//w:sectPr", 2);
-    assertXPath(pXmlDoc, "//w:p", 2);
+    assertXPath(pXmlDoc, "//w:p", 3);
 }
 
 DECLARE_OOXMLEXPORT_TEST(testTdf44832_testSectionWithDifferentHeader, "tdf44832_section_new_header.odt")


More information about the Libreoffice-commits mailing list