aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Vladimirov <sergey@apache.org>2011-08-22 13:27:15 +0000
committerSergey Vladimirov <sergey@apache.org>2011-08-22 13:27:15 +0000
commit6f75fdd41ec5afeb5e59ff25b5cbe99e13673a3f (patch)
treecba7748d67c582fc37e7e5bb902060f7bd094285
parentda8e38019aa8e641948a313bbc67fc1eef7a59ad (diff)
downloadpoi-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.java8
-rw-r--r--test-data/document/page-break-before.docbin0 -> 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
new file mode 100644
index 0000000000..dddc5b5a3b
--- /dev/null
+++ b/test-data/document/page-break-before.doc
Binary files differ