--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+ Copyright 2005 The Apache Software Foundation\r
+\r
+ Licensed under the Apache License, Version 2.0 (the "License");\r
+ you may not use this file except in compliance with the License.\r
+ You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+-->\r
+<!-- $Id$ -->\r
+<testcase>\r
+ <info>\r
+ <p>\r
+ This test checks element-lists on tables, particularly a constellation where a single line\r
+ from one column might be printed alone while the rest of the content is broken over to\r
+ the next part.\r
+ </p>\r
+ </info>\r
+ <fo>\r
+ <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">\r
+ <fo:layout-master-set>\r
+ <fo:simple-page-master master-name="normal" page-width="4in" page-height="1.4in">\r
+ <fo:region-body/>\r
+ </fo:simple-page-master>\r
+ </fo:layout-master-set>\r
+ <fo:page-sequence master-reference="normal" widows="3" orphans="3">\r
+ <fo:flow flow-name="xsl-region-body">\r
+ <fo:block-container height="9*8400mpt">\r
+ <fo:block/>\r
+ </fo:block-container>\r
+ <fo:table font-size="8pt">\r
+ <fo:table-column column-width="10%"/>\r
+ <fo:table-column column-width="90%"/>\r
+ <fo:table-body>\r
+ <fo:table-row>\r
+ <fo:table-cell>\r
+ <fo:block>A</fo:block>\r
+ <fo:block>B</fo:block>\r
+ <!-- Note: The second "B" block is there to trigger a problem that was revealed in a earlier attempt at handling this special case. -->\r
+ </fo:table-cell>\r
+ <fo:table-cell>\r
+ <fo:block>Cras et felis faucibus justo fringilla tincidunt. Vivamus vitae wisi ut orci egestas bibendum. Nullam nunc orci, euismod non, pulvinar sit amet, aliquet a, leo. Aliquam dapibus, justo pulvinar euismod fringilla, neque ipsum pretium lorem, eget pharetra eros massa vel nulla. Ut lobortis enim id magna. Pellentesque sagittis. Etiam tristique arcu. Cras eu dolor. Praesent aliquam wisi sit amet enim. Nullam id diam.</fo:block>\r
+ </fo:table-cell>\r
+ </fo:table-row>\r
+ </fo:table-body>\r
+ </fo:table>\r
+ </fo:flow>\r
+ </fo:page-sequence>\r
+ </fo:root>\r
+ </fo>\r
+ <checks>\r
+ <!-- Both 'A' and 'B' must be on the second page -->\r
+ <eval expected="2" xpath="//text[.='A']/ancestor::pageViewport/@nr"/>\r
+ <eval expected="2" xpath="//text[.='B']/ancestor::pageViewport/@nr"/>\r
+ <element-list category="breaker">\r
+ <box w="75600"/> <!-- block-container as spacer -->\r
+ <penalty w="0" p="0"/>\r
+ <box w="0"/>\r
+ <penalty w="9600" p=">0"/>\r
+ <box w="0"/>\r
+ <penalty w="19200" p=">0"/>\r
+ <box w="28800"/>\r
+ <penalty w="0" p="0"/>\r
+ <box w="28800"/>\r
+ <skip>3</skip>\r
+ </element-list>\r
+ </checks>\r
+</testcase>\r