aboutsummaryrefslogtreecommitdiffstats
path: root/fop/test
diff options
context:
space:
mode:
Diffstat (limited to 'fop/test')
-rw-r--r--fop/test/layoutengine/standard-testcases/empty_table.xml75
1 files changed, 75 insertions, 0 deletions
diff --git a/fop/test/layoutengine/standard-testcases/empty_table.xml b/fop/test/layoutengine/standard-testcases/empty_table.xml
new file mode 100644
index 000000000..5042b8626
--- /dev/null
+++ b/fop/test/layoutengine/standard-testcases/empty_table.xml
@@ -0,0 +1,75 @@
+<?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 verifies that a table with an empty body does not make
+ FOP loop infinitely.
+ </p>
+ </info>
+ <cfg>
+ <strict-validation>false</strict-validation>
+ </cfg>
+ <fo>
+ <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="A4-main">
+ <fo:region-body/>
+ <fo:region-before extent="10mm" region-name="main-reg-before"/>
+ </fo:simple-page-master>
+ <fo:page-sequence-master master-name="basic">
+ <fo:repeatable-page-master-alternatives>
+ <fo:conditional-page-master-reference master-reference="A4-main"/>
+ </fo:repeatable-page-master-alternatives>
+ </fo:page-sequence-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="basic">
+ <fo:static-content flow-name="main-reg-before">
+ <fo:block>test</fo:block>
+ </fo:static-content>
+ <fo:flow flow-name="xsl-region-body">
+ <fo:block-container>
+ <fo:block-container>
+ <fo:table>
+ <fo:table-body/>
+ </fo:table>
+ <fo:table>
+ <fo:table-header/>
+ <fo:table-body/>
+ </fo:table>
+ <fo:table>
+ <fo:table-footer/>
+ <fo:table-body/>
+ </fo:table>
+ <fo:table>
+ <fo:table-header/>
+ <fo:table-footer/>
+ <fo:table-body/>
+ </fo:table>
+ </fo:block-container>
+ </fo:block-container>
+ </fo:flow>
+ </fo:page-sequence>
+ </fo:root>
+ </fo>
+ <checks>
+ <eval expected="test" xpath="//pageViewport[1]//word"/>
+ </checks>
+</testcase>
+