From 6f75fdd41ec5afeb5e59ff25b5cbe99e13673a3f Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Mon, 22 Aug 2011 13:27:15 +0000 Subject: [PATCH] add test case for "page break before" property of paragraph git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160263 13f79535-47bb-0310-9956-ffa450edef68 --- .../hwpf/converter/TestWordToFoConverter.java | 8 ++++++++ test-data/document/page-break-before.doc | Bin 0 -> 9216 bytes 2 files changed, 8 insertions(+) create mode 100644 test-data/document/page-break-before.doc diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToFoConverter.java b/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToFoConverter.java index 4d74674c0b..52149f53d0 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToFoConverter.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToFoConverter.java @@ -125,6 +125,14 @@ public class TestWordToFoConverter extends TestCase "padding-end=\"0.0in\" padding-start=\"0.0in\" width=\"1.0770833in\"" ); } + public void testPageBreakBefore() throws Exception + { + final String sampleFileName = "page-break-before.doc"; + String result = getFoText( sampleFileName ); + + assertContains( result, "iza?tt=0TVw)%`KXGhX?jalHafdWrrk)Q*xGGbss7j zF}Wh$+?hLHxT&A7PEr4u2lDw!%X9tj%->Ue{`Ebe&;Kk4z-*WUPeUclg?TU^7QjNN zf<>?xR9}#IDO6|whlrnn<*)))!n3dnR>K-t3pKC~)dN7_CHt&Rv zZp~{;9ycRF(>44tR0_>^ggo-NY+S-)glXSrxMCCA>;Hqb0Hzwnyj5P-MQX?1@;?6}2T1v3*CQ zr4pm;GNhB&1Xa%lOc&Qm%hbl?Iw;fv-WaLaUGK5(nqRaPMDGu z*W3`5(Iu96EFE)xnTzf9*uKTszs=r^`Wduz_JtcV=fWBBhAf`4&Zw6rcxghFF*{>& z72`i#p|bQjD3`@{tG(68(QA_(l(5}^#8x|u)H3>T_643{q>6-OU4>-@tPp9hE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