]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Add a disabled testcase for bug #40230 (was in my local copy for long)
authorVincent Hennebert <vhennebert@apache.org>
Thu, 7 Dec 2006 14:05:59 +0000 (14:05 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Thu, 7 Dec 2006 14:05:59 +0000 (14:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@483461 13f79535-47bb-0310-9956-ffa450edef68

test/layoutengine/disabled-testcases.xml
test/layoutengine/standard-testcases/block_break-after_bug40230.xml [new file with mode: 0644]

index d4b94361f974cd3c54f8bff73192eb7e11913a31..cdaaaa741e7fb486c258fa92b6873c2fc3175755 100644 (file)
     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>
diff --git a/test/layoutengine/standard-testcases/block_break-after_bug40230.xml b/test/layoutengine/standard-testcases/block_break-after_bug40230.xml
new file mode 100644 (file)
index 0000000..15c6648
--- /dev/null
@@ -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>