diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2017-12-15 11:56:21 +0100 |
---|---|---|
committer | Tamás Bunth <btomi96@gmail.com> | 2017-12-16 12:26:28 +0100 |
commit | cf7056223c004ef905f66bf11f9af8e2b057df27 (patch) | |
tree | 5cfc185acb46ebc8f6edfb9e98fb0250e11d755a /sw/qa | |
parent | 882cadaac40226ea9b5dbbceb7e82328d5a935ee (diff) |
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>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/parasplit-on-section-border.odt | bin | 17550 -> 17642 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport11.cxx | 6 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/parasplit-on-section-border.odt b/sw/qa/extras/ooxmlexport/data/parasplit-on-section-border.odt Binary files differindex 1d0b96f8bb96..8a6e4aeb4704 100644 --- a/sw/qa/extras/ooxmlexport/data/parasplit-on-section-border.odt +++ b/sw/qa/extras/ooxmlexport/data/parasplit-on-section-border.odt 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") |