poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1160263 - in /poi/trunk: src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToFoConverter.java test-data/document/page-break-before.doc
Date Mon, 22 Aug 2011 13:27:15 GMT
Author: sergey
Date: Mon Aug 22 13:27:15 2011
New Revision: 1160263

URL: http://svn.apache.org/viewvc?rev=1160263&view=rev
Log:
add test case for "page break before" property of paragraph

Added:
    poi/trunk/test-data/document/page-break-before.doc   (with props)
Modified:
    poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToFoConverter.java

Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToFoConverter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToFoConverter.java?rev=1160263&r1=1160262&r2=1160263&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToFoConverter.java
(original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToFoConverter.java
Mon Aug 22 13:27:15 2011
@@ -125,6 +125,14 @@ public class TestWordToFoConverter exten
                 "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";

Added: poi/trunk/test-data/document/page-break-before.doc
URL: http://svn.apache.org/viewvc/poi/trunk/test-data/document/page-break-before.doc?rev=1160263&view=auto
==============================================================================
Binary file - no diff available.

Propchange: poi/trunk/test-data/document/page-break-before.doc
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message