Add a test of explicit page breaks in wxHtmlPrintout too

Check that using the style forcing a page break does work.
This commit is contained in:
Vadim Zeitlin 2018-05-24 00:30:38 +02:00
parent dd92a269c3
commit b0ae6681be

View File

@ -77,6 +77,15 @@ TEST_CASE("wxHtmlPrintout::Pagination", "[html][print]")
"<img width=\"100\" height=\"2500\" src=\"dummy\"/>"
);
CHECK( CountPages(pr) == 3 );
// Test explicit page breaks too.
pr.SetHtmlText
(
"First page"
"<div style=\"page-break-before:always\"/>"
"Second page"
);
CHECK( CountPages(pr) == 2 );
}
#endif //wxUSE_HTML