Skip to content

Commit

Permalink
#180 - Table non paginated - Tests that a non-paginated table does NO…
Browse files Browse the repository at this point in the history
…T output table header, footer or caption on every page.
  • Loading branch information
danfickle committed Dec 23, 2018
1 parent 7690b93 commit 1ea590a
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;">
<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 @@ -424,4 +424,12 @@ public void testRunningOverflowNotGenerated() throws IOException {
public void testFixedOverflowNotGenerated() throws IOException {
assertTrue(run("fixed-overflow-not-generated"));
}

/**
* Tests that a non-paginated table does not output table header, footer or caption on every page.
*/
@Test
public void testTableNonPaginated() throws IOException {
assertTrue(run("table-non-paginated"));
}
}

0 comments on commit 1ea590a

Please sign in to comment.