From 2cba48b8385e7572e77f238becf715c4ef711ade Mon Sep 17 00:00:00 2001 From: danfickle Date: Thu, 20 Dec 2018 16:48:30 +1100 Subject: [PATCH] #180 Test text transform on overflow page in page margin. --- .../text/page-margins-long-text-transform.pdf | Bin 0 -> 4092 bytes .../page-margins-long-text-transform.html | 32 ++++++++++++++++++ .../TextVisualRegressionTest.java | 9 +++++ 3 files changed, 41 insertions(+) create mode 100644 openhtmltopdf-examples/src/main/resources/visualtest/expected/text/page-margins-long-text-transform.pdf create mode 100644 openhtmltopdf-examples/src/main/resources/visualtest/html/text/page-margins-long-text-transform.html diff --git a/openhtmltopdf-examples/src/main/resources/visualtest/expected/text/page-margins-long-text-transform.pdf b/openhtmltopdf-examples/src/main/resources/visualtest/expected/text/page-margins-long-text-transform.pdf new file mode 100644 index 0000000000000000000000000000000000000000..9306c3d29ccea2506640daaaa64cb3ea23298695 GIT binary patch literal 4092 zcmeHKc|a3a8jqk-2kj~pi&kYUAPSPXGC2gPkdShS2nGZrYDk6<44E_;6sU@L(W;9I zRjEoVQfpgr1rb5Tg4=pfX+5_paxEbBDq0k*D5Y-_&$j1kwbSl=2urL=JC>kaOd;*q`(8i+)&hQ8t`PGRY^+9 z08gd$lrEl0)H1YQ6~|T5iPJ1xv!Pzk%#;Fz1Zz}ASk7ZJfl2lr10iBMNyosrg*p3v zpgDwuP%4eWk4}c=C>Mp<4@SPcn>^_lO2-&sKI+3(SJK3IljQpb~5* z|5H3+|9GPR8jnq{FWziQr)J_|oDi@DFfw2v5=TK`R)m0rmqR!l1fg&OgrRTZ^0_z(V?r)aS0(~o_RpY({A3U!#b6AFWpO5?uqG(XBe^^wP?aS@ zQ#m3|04IX8a3RN<6UqtagmHqvNNO6*2d~07^QXbG1jt_og@K^v7#M-E0TZF#LGPFL zZdSpr?a6T#7|+QOhFM}U*CX0u}84N zpjCMK(OMOR%u9-8Onk+%778K$Iwh^r=+rP0r~>;_!=!iyK!}7gDgiJQI)-%wXai#z zi)9QM9ih_z6A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Yv1@~9tpZm zKbe3xh)f6$;;-vrC^*~nmtp9D7#KzXO7CZj4Pr|SoG(U#gHeB55pRG$9K{FB7stUd zs-G=Rhz8V;;E@(F7=r?|DTC?9bvR9f24!wnrlX+gAPU;41eSXXNU_Kt1DAl05`H8p u<% + + + + +
+ + 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 e51eb076b..26abf213a 100644 --- a/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/TextVisualRegressionTest.java +++ b/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/TextVisualRegressionTest.java @@ -390,4 +390,13 @@ public void testTransformAbsolute() throws IOException { public void testTransformFloat() throws IOException { assertTrue(run("transform-float")); } + + /** + * Tests a long text transform in left-middle on overflow page. + * Common case of wanting a strip of vertical text in the left margin. + */ + @Test + public void testPageMarginsLongTextTransform() throws IOException { + assertTrue(run("page-margins-long-text-transform")); + } }