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:
@@ -86,6 +86,19 @@ TEST_CASE("wxHtmlPrintout::Pagination", "[html][print]")
|
|||||||
"Second page"
|
"Second page"
|
||||||
);
|
);
|
||||||
CHECK( CountPages(pr) == 2 );
|
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
|
#endif //wxUSE_HTML
|
||||||
|
Reference in New Issue
Block a user