diff options
author | Sergey Vladimirov <sergey@apache.org> | 2011-08-22 13:27:15 +0000 |
---|---|---|
committer | Sergey Vladimirov <sergey@apache.org> | 2011-08-22 13:27:15 +0000 |
commit | 6f75fdd41ec5afeb5e59ff25b5cbe99e13673a3f (patch) | |
tree | cba7748d67c582fc37e7e5bb902060f7bd094285 | |
parent | da8e38019aa8e641948a313bbc67fc1eef7a59ad (diff) | |
download | poi-6f75fdd41ec5afeb5e59ff25b5cbe99e13673a3f.tar.gz poi-6f75fdd41ec5afeb5e59ff25b5cbe99e13673a3f.zip |
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
-rw-r--r-- | src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToFoConverter.java | 8 | ||||
-rw-r--r-- | test-data/document/page-break-before.doc | bin | 0 -> 9216 bytes |
2 files changed, 8 insertions, 0 deletions
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, "<fo:block break-before=\"page\"" ); + } + public void testPageref() throws Exception { final String sampleFileName = "pageref.doc"; diff --git a/test-data/document/page-break-before.doc b/test-data/document/page-break-before.doc Binary files differnew file mode 100644 index 0000000000..dddc5b5a3b --- /dev/null +++ b/test-data/document/page-break-before.doc |