diff options
Diffstat (limited to 'fop/test/layoutengine')
-rw-r--r-- | fop/test/layoutengine/standard-testcases/table_linefeed.xml | 57 |
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> |