Skip to content

Commit

Permalink
#180 - Table paginated - Tests that a paginated table DOES output tab…
Browse files Browse the repository at this point in the history
…le header and footer on every page (but caption only on first page).
  • Loading branch information
danfickle committed Dec 23, 2018
1 parent 1ea590a commit e6d61af
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<html>
<head>
<style>
@page {
size: 200px 160px;
margin: 30px;
}
td, th {
line-height: 20px;
font-weight: normal;
}
thead th {
color: red;
}
tfoot td {
color: blue;
}

</style>
</head>
<body style="font-family: 'TestFont'; color: black; font-size: 12px;">
<table style="border-collapse: collapse; border: 1px solid red; -fs-table-paginate: paginate;">
<caption>987654321</caption>
<thead>
<tr><th style="">ABCDEF</th><th style="">GHIJKL</th></tr>
</thead>
<tbody>
<tr><td style="">MNOPQR</td><td style="">STUVWXY</td></tr>
<tr><td style="">Z12345</td><td style="">678901</td></tr>
<tr><td style="">234567</td><td style="">890123</td></tr>
</tbody>
<tfoot>
<tr><td>456789</td><td>012345</td></tr>
</tfoot>
</table>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -432,4 +432,12 @@ public void testFixedOverflowNotGenerated() throws IOException {
public void testTableNonPaginated() throws IOException {
assertTrue(run("table-non-paginated"));
}

/**
* Tests that a paginated table DOES output table header and footer on every page (but caption only on first page).
*/
@Test
public void testTablePaginated() throws IOException {
assertTrue(run("table-paginated"));
}
}

0 comments on commit e6d61af

Please sign in to comment.