diff options
Diffstat (limited to 'fop/test/layoutengine')
-rw-r--r-- | fop/test/layoutengine/standard-testcases/table-inline-pagebreak.xml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/fop/test/layoutengine/standard-testcases/table-inline-pagebreak.xml b/fop/test/layoutengine/standard-testcases/table-inline-pagebreak.xml new file mode 100644 index 000000000..3b8cc52f0 --- /dev/null +++ b/fop/test/layoutengine/standard-testcases/table-inline-pagebreak.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 inline page break + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions"> + <fo:layout-master-set> + <fo:simple-page-master margin-right="1in" margin-left="1in" margin-bottom="1in" margin-top="1in" page-width="8.5in" page-height="11in" master-name="Page"> + <fo:region-body margin-right="0in" margin-left="0in" margin-bottom="0.50in" margin-top="0in" region-name="Body"/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence format="1" id="TH_LastPage" master-reference="Page"> + <fo:flow flow-name="Body"> + <fo:table table-layout="fixed" width="100%"> + <fo:table-column column-width="proportional-column-width(100)" column-number="1"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell> + <fo:block> + <fo:inline> + <fo:leader/> + <fo:block break-before="page"/>This is an example of a Table</fo:inline> + </fo:block> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <eval expected="2" xpath="count(//pageViewport)"/> + <eval expected="This" xpath="//pageViewport[2]//word[1]"/> + <eval expected="Table" xpath="//pageViewport[2]//word[7]"/> + </checks> +</testcase> |