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@libreoffice.org>
Reviewed-by: Tamás Bunth <btomi96@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 1d0b96f..8a6e4ae 100644
--- a/sw/qa/extras/ooxmlexport/data/parasplit-on-section-border.odt
+++ b/sw/qa/extras/ooxmlexport/data/parasplit-on-section-border.odt
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx
index d705a7e..c750e5b 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")