From e6d61af41e41888fdc056096ee6dcd9da7b8607e Mon Sep 17 00:00:00 2001 From: danfickle Date: Sun, 23 Dec 2018 23:03:51 +1100 Subject: [PATCH] #180 - Table paginated - Tests that a paginated table DOES output table header and footer on every page (but caption only on first page). --- .../expected/text/table-paginated.pdf | Bin 0 -> 8321 bytes .../visualtest/html/text/table-paginated.html | 37 ++++++++++++++++++ .../TextVisualRegressionTest.java | 8 ++++ 3 files changed, 45 insertions(+) create mode 100644 openhtmltopdf-examples/src/main/resources/visualtest/expected/text/table-paginated.pdf create mode 100644 openhtmltopdf-examples/src/main/resources/visualtest/html/text/table-paginated.html diff --git a/openhtmltopdf-examples/src/main/resources/visualtest/expected/text/table-paginated.pdf b/openhtmltopdf-examples/src/main/resources/visualtest/expected/text/table-paginated.pdf new file mode 100644 index 0000000000000000000000000000000000000000..5e9ac0f2192662eafbdd35070a664cec86ca6ed9 GIT binary patch literal 8321 zcmd5>dpuNI`yZ9mPEsjE*(a2UnLT^1sE$h}l-xoHBa=%Qmmw(?10Z8#i0rsNga?z&xB_k<-xne~@xsFW`N1$5FlB^SO}GhQc(&*XXqiwTnc6GJb)C&_la1| z3xjp|A-rHeK~SK8AL6sdU^PEzo&+?eYN%yG6Ckp+zfU;qM#C(D>Dc=!h-}7>2o}Ip z332TCaB+ydjOXLeHRVUaZWIFwjQt~Y;X4()3z32aykJ2%%)p=_vOO=H9}%`1_|6m& zY`J0J`LIY}mi(Xev845}|5hJno><>fUa+sg4>*D{un2?;z)S>9gn&aRlMb(gsIV18 zfde3f0xyHyRsl&LC={Yn4d^hN3EqMrgo=F%2Z8tidyI((iWsGaIIADz3Z7?|SgVq2BTmnT5sK6>AobbDt84TE% zNd%ObfQb*XK!*3wRX-F<1r^+t2$fiFO-Xe@!kpc&A?BcUG>sK6B|8GMZM2SONzlx8ryAg(NIE`chMEf|F|M7e~} zpf%Eh5>SLj0%|yAB+qCdERvoPQqrE_W1L^)8DS4DC1DT2N7yr*Lg zv10@hfsG-7%@O>8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a/openhtmltopdf-examples/src/main/resources/visualtest/html/text/table-paginated.html b/openhtmltopdf-examples/src/main/resources/visualtest/html/text/table-paginated.html new file mode 100644 index 000000000..e82b13de3 --- /dev/null +++ b/openhtmltopdf-examples/src/main/resources/visualtest/html/text/table-paginated.html @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + +
987654321
ABCDEFGHIJKL
MNOPQRSTUVWXY
Z12345678901
234567890123
456789012345
+ + diff --git a/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/TextVisualRegressionTest.java b/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/TextVisualRegressionTest.java index fed37bb17..b4cb186d9 100644 --- a/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/TextVisualRegressionTest.java +++ b/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/TextVisualRegressionTest.java @@ -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")); + } }