Browse Source

Add a disabled testcase for bug #40230 (was in my local copy for long)


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@483461 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-0_93
Vincent Hennebert 17 years ago
parent
commit
d4939d6e1a

+ 8
- 1
test/layoutengine/disabled-testcases.xml View File

@@ -318,4 +318,11 @@
block-level element because its layout manager is written to handle only
inline content.</description>
</testcase>
</disabled-testcases>
<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>

+ 45
- 0
test/layoutengine/standard-testcases/block_break-after_bug40230.xml View File

@@ -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>

Loading…
Cancel
Save