Add another page-break-before test to pagination unit test

Check that the nested elements with this style are handled as expected.
This commit is contained in:
Vadim Zeitlin
2018-05-27 22:28:33 +02:00
parent adfde70054
commit 8dffab0556

View File

@@ -86,6 +86,19 @@ TEST_CASE("wxHtmlPrintout::Pagination", "[html][print]")
"Second page"
);
CHECK( CountPages(pr) == 2 );
pr.SetHtmlText
(
"Something"
"<div style=\"page-break-before:always\">"
"<div style=\"page-break-before:always\">"
"<div style=\"page-break-before:always\">"
"whatever"
"</div>"
"</div>"
"</div>"
);
CHECK( CountPages(pr) == 2 );
}
#endif //wxUSE_HTML