From b0ae6681bedc2c5868c3a6784a9ccfe0a146acfa Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 24 May 2018 00:30:38 +0200 Subject: [PATCH] Add a test of explicit page breaks in wxHtmlPrintout too Check that using the style forcing a page break does work. --- tests/html/htmprint.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/html/htmprint.cpp b/tests/html/htmprint.cpp index 0466182845..905a70d34e 100644 --- a/tests/html/htmprint.cpp +++ b/tests/html/htmprint.cpp @@ -77,6 +77,15 @@ TEST_CASE("wxHtmlPrintout::Pagination", "[html][print]") "" ); CHECK( CountPages(pr) == 3 ); + + // Test explicit page breaks too. + pr.SetHtmlText + ( + "First page" + "
" + "Second page" + ); + CHECK( CountPages(pr) == 2 ); } #endif //wxUSE_HTML