You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by vh...@apache.org on 2006/12/07 15:06:00 UTC

svn commit: r483461 - in /xmlgraphics/fop/trunk/test/layoutengine: disabled-testcases.xml standard-testcases/block_break-after_bug40230.xml

Author: vhennebert
Date: Thu Dec  7 06:05:59 2006
New Revision: 483461

URL: http://svn.apache.org/viewvc?view=rev&rev=483461
Log:
Add a disabled testcase for bug #40230 (was in my local copy for long)

Added:
    xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/block_break-after_bug40230.xml
Modified:
    xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.xml

Modified: xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.xml?view=diff&rev=483461&r1=483460&r2=483461
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.xml (original)
+++ xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.xml Thu Dec  7 06:05:59 2006
@@ -318,4 +318,11 @@
     block-level element because its layout manager is written to handle only 
     inline content.</description>
   </testcase>
-</disabled-testcases>
\ No newline at end of file
+  <testcase>
+    <name>Bugzilla #40230: invalid extra page break</name>
+    <file>block_break-after_bug40230.xml</file>
+    <description>Currently an extra page is created even if there is nothing
+      after a block with break-after="page"</description>
+    <reference>http://issues.apache.org/bugzilla/show_bug.cgi?id=40230</reference>
+  </testcase>
+</disabled-testcases>

Added: xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/block_break-after_bug40230.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/block_break-after_bug40230.xml?view=auto&rev=483461
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/block_break-after_bug40230.xml (added)
+++ xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/block_break-after_bug40230.xml Thu Dec  7 06:05:59 2006
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!-- $Id: block_break-after.xml 426576 2006-07-28 15:44:37Z jeremias $ -->
+<testcase>
+  <info>
+    <p>
+      This test checks that a break-after when there is no further element
+      after should not produce any additional page.
+    </p>
+  </info>
+  <fo>
+    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+      <fo:layout-master-set>
+	<fo:simple-page-master master-name="normal"
+	  page-height="5cm" page-width="10cm">
+	  <fo:region-body/>
+	</fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="normal">
+	<fo:flow flow-name="xsl-region-body">
+	  <fo:block>Some text with an &lt;fo:block break-after="page"/&gt; after.</fo:block>
+	  <fo:block break-after="page"/>
+	</fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <eval expected="1" xpath="count(//pageViewport)"/>
+  </checks>
+</testcase>



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