Vadim Zeitlin
9e05eb42b5
Fix outdated comment in wxHtmlPrintout unit test
...
This should have been part of 321854b519
which changed the code, but not the accompanying comment.
2018-07-25 13:52:49 +02:00
Vadim Zeitlin
0338796847
Remove unnecessary headers from wxHtmlPrintout unit test
...
These headers were added by 905789485a
which was replaced with 321854b519
later
and are not needed any more.
2018-07-25 13:49:00 +02:00
Vadim Zeitlin
6acd663190
Revert "Add even more debug output to the test"
...
This reverts commit 1ce009e73a
as AppVeyor
test failures problem is fixed now.
2018-07-25 13:47:13 +02:00
Vadim Zeitlin
542124aa95
Fix page-break-inside:avoid to work for nested tags too
...
The initial version was too naïve and didn't work correctly if the <div>
with this style had nested elements.
2018-07-25 02:23:02 +02:00
Vadim Zeitlin
321854b519
Try using fixed font size in pixels in the test
2018-07-22 00:54:05 +02:00
Vadim Zeitlin
1ce009e73a
Add even more debug output to the test
2018-07-22 00:43:26 +02:00
Vadim Zeitlin
96cca10328
Use fixed font name in the HTML pagination test
2018-07-22 00:43:26 +02:00
Vadim Zeitlin
905789485a
Fix the just added pagination test for high DPI systems
...
Adjust the font size used by a DPI-dependent factor to ensure that the
text takes the same amount of pixels independently of DPI.
2018-07-22 00:43:25 +02:00
Vadim Zeitlin
566e401a3f
Add support for style="page-break-inside:avoid" to wxHTML
...
Allow using this style to prevent page breaks inside the given <div>.
2018-07-22 00:43:25 +02:00
Vadim Zeitlin
b55578e40c
Fix HTML pagination test for high DPI values
...
The standard margins, expressed in millimeters, could result in the
usable page space being much smaller than 1000px used for the DC size
when using higher DPIs, which means that the test checking that a 2400px
image took only 3 pages could fail, as it could require 4 of them in
this case.
Fix this by getting rid of the margins, as this should ensure that the
page height is exactly 1000px now, independently of the actual DPI.
2018-05-27 22:43:28 +02:00
Vadim Zeitlin
8dffab0556
Add another page-break-before test to pagination unit test
...
Check that the nested elements with this style are handled as expected.
2018-05-27 22:28:33 +02:00
Vadim Zeitlin
b0ae6681be
Add a test of explicit page breaks in wxHtmlPrintout too
...
Check that using the style forcing a page break does work.
2018-05-24 17:53:26 +02:00
Vadim Zeitlin
dd92a269c3
Add a simple unit test for wxHtmlPrintout pagination logic
...
Verify that the number of pages to be printed is as expected.
2018-05-23 18:14:07 +02:00