From 8dffab05563c6833c3376ff238f5a15b1ea621f7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 27 May 2018 22:28:33 +0200 Subject: [PATCH] Add another page-break-before test to pagination unit test Check that the nested elements with this style are handled as expected. --- tests/html/htmprint.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/html/htmprint.cpp b/tests/html/htmprint.cpp index 905a70d34e..58df3ed3e2 100644 --- a/tests/html/htmprint.cpp +++ b/tests/html/htmprint.cpp @@ -86,6 +86,19 @@ TEST_CASE("wxHtmlPrintout::Pagination", "[html][print]") "Second page" ); CHECK( CountPages(pr) == 2 ); + + pr.SetHtmlText + ( + "Something" + "
" + "
" + "
" + "whatever" + "
" + "
" + "
" + ); + CHECK( CountPages(pr) == 2 ); } #endif //wxUSE_HTML