aboutsummaryrefslogtreecommitdiffstats
path: root/fop/test/layoutengine
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2021-04-22 10:45:11 +0000
committerSimon Steiner <ssteiner@apache.org>2021-04-22 10:45:11 +0000
commit5ce5fe50a74b9e3f84cabcffee46f860c86dbd47 (patch)
tree406c831e285c8157dda3226918a28bb7db479594 /fop/test/layoutengine
parent678d6c0e04fd6a5464012be0241bb771cf9bb506 (diff)
downloadxmlgraphics-fop-5ce5fe50a74b9e3f84cabcffee46f860c86dbd47.tar.gz
xmlgraphics-fop-5ce5fe50a74b9e3f84cabcffee46f860c86dbd47.zip
FOP-3008: Table with linefeed-treatment may give ClassCastException
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1889102 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop/test/layoutengine')
-rw-r--r--fop/test/layoutengine/standard-testcases/table_linefeed.xml57
1 files changed, 57 insertions, 0 deletions
diff --git a/fop/test/layoutengine/standard-testcases/table_linefeed.xml b/fop/test/layoutengine/standard-testcases/table_linefeed.xml
new file mode 100644
index 000000000..0486e51b2
--- /dev/null
+++ b/fop/test/layoutengine/standard-testcases/table_linefeed.xml
@@ -0,0 +1,57 @@
+<?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$ -->
+<testcase>
+ <info>
+ <p>
+ This test checks table linefeed in certain situations.
+ </p>
+ </info>
+ <fo>
+<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="ref" page-height="297.0mm" page-width="210.0mm">
+ <fo:region-body region-name="xsl-region-body" />
+ </fo:simple-page-master>
+ <fo:page-sequence-master master-name="master">
+ <fo:repeatable-page-master-reference master-reference="ref" maximum-repeats="99999" />
+ </fo:page-sequence-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="master">
+ <fo:flow flow-name="xsl-region-body" linefeed-treatment="preserve">
+ <fo:block>
+ <fo:table table-layout="fixed" >
+ <fo:table-column column-width="226pt" />
+ <fo:table-body >
+ <fo:table-row>
+ <fo:table-cell >
+ <fo:wrapper>
+ </fo:wrapper>
+ </fo:table-cell>
+ </fo:table-row>
+ </fo:table-body>
+ </fo:table>
+ </fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+</fo:root>
+ </fo>
+ <checks>
+ <eval expected="595275" xpath="//lineArea[1]/@ipd"/>
+ </checks>
+</testcase>