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:
parent
dd92a269c3
commit
b0ae6681be
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user