// new FileModelPrinter("Prd-3930-page-" + page + "-", DebugReportRunner.createTestOutputFile()).print(logicalPageBox);
final RenderNode[] all = MatchFactory.matchAll(logicalPageBox, new ElementMatcher(TableRowRenderBox.class));
for (int i = 0; i < all.length; i += 1)
{
final RenderNode node = all[i];
// temporary workaround:
final RenderBox parent = node.getParent();
if (parent instanceof TableSectionRenderBox)
{
final TableSectionRenderBox parentBox = (TableSectionRenderBox) parent;
if (parentBox.getDisplayRole() != TableSectionRenderBox.Role.BODY)
{
continue;
}
}
try
{
assertFalse((node.getY() + node.getHeight()) <= logicalPageBox.getPageOffset());
assertFalse(node.getY() >= logicalPageBox.getPageEnd());
if (node.getY() < logicalPageBox.getPageEnd() &&
(node.getY() + node.getHeight()) > logicalPageBox.getPageEnd())
{
fail(" y=" + node.getY() + " height=" + node.getHeight());
}
}
catch (AssertionFailedError afe)
{
ModelPrinter.INSTANCE.print(node);