aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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