diff options
author | Simon Steiner <ssteiner@apache.org> | 2015-02-09 09:53:37 +0000 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2015-02-09 09:53:37 +0000 |
commit | f8933ed37b48add7bc870a5b80e74dfaabdb55b5 (patch) | |
tree | 5618f08c1031b0981b70ae972eb3d34cf3c535bc /test/layoutengine | |
parent | 09b670c6ecac9596793eb7e3f59324bcd51d74bb (diff) | |
download | xmlgraphics-fop-f8933ed37b48add7bc870a5b80e74dfaabdb55b5.tar.gz xmlgraphics-fop-f8933ed37b48add7bc870a5b80e74dfaabdb55b5.zip |
FOP-2447: Text cut off for changing IPD for page starting with a table
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1658340 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/layoutengine')
-rw-r--r-- | test/layoutengine/standard-testcases/flow_changing-ipd_break-before-table.xml | 2 | ||||
-rw-r--r-- | test/layoutengine/standard-testcases/flow_changing-ipd_break-before-table2.xml | 68 |
2 files changed, 69 insertions, 1 deletions
diff --git a/test/layoutengine/standard-testcases/flow_changing-ipd_break-before-table.xml b/test/layoutengine/standard-testcases/flow_changing-ipd_break-before-table.xml index 11496f80e..bbba1b565 100644 --- a/test/layoutengine/standard-testcases/flow_changing-ipd_break-before-table.xml +++ b/test/layoutengine/standard-testcases/flow_changing-ipd_break-before-table.xml @@ -68,7 +68,7 @@ <checks> <eval expected="Before the table" xpath="//pageViewport[1]//flow/block[1]//text"/> <!-- Test does not really matter, just make sure document is processed successfully --> - <eval expected="150000" xpath="//pageViewport[2]//flow/block[1]/@ipd"/> + <eval expected="200000" xpath="//pageViewport[2]//flow/block[1]/@ipd"/> <eval expected="22000" xpath="//pageViewport[2]//flow/block[1]/@bpd"/> </checks> </testcase> diff --git a/test/layoutengine/standard-testcases/flow_changing-ipd_break-before-table2.xml b/test/layoutengine/standard-testcases/flow_changing-ipd_break-before-table2.xml new file mode 100644 index 000000000..a88a1cc07 --- /dev/null +++ b/test/layoutengine/standard-testcases/flow_changing-ipd_break-before-table2.xml @@ -0,0 +1,68 @@ +<?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> + Bugfix: + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> + <fo:layout-master-set> + <fo:simple-page-master page-width="216mm" page-height="303mm" master-name="Page1"> + <fo:region-body region-name="PageBody"/> + </fo:simple-page-master> + <fo:simple-page-master page-width="210mm" page-height="297mm" master-name="Page3"> + <fo:region-body region-name="PageBody" /> + </fo:simple-page-master> + <fo:page-sequence-master master-name="StatementPages"> + <fo:repeatable-page-master-alternatives> + <fo:conditional-page-master-reference master-reference="Page1" page-position="first"/> + <fo:conditional-page-master-reference master-reference="Page3" page-position="last"/> + <fo:conditional-page-master-reference master-reference="Page3" page-position="rest"/> + </fo:repeatable-page-master-alternatives> + </fo:page-sequence-master> + </fo:layout-master-set> + <fo:page-sequence format="1" id="th_default_sequence1" initial-page-number="auto" master-reference="StatementPages"> + <fo:flow flow-name="PageBody"> + <fo:block>Before the table</fo:block> + <fo:table table-layout="fixed" page-break-before="always" border-collapse="collapse"> + <fo:table-column /> + <fo:table-body> + <fo:table-row display-align="center" space-before="7pt" vertical-align="middle" height="1cm"> + <fo:table-cell background-color="#E6E6E6" border-bottom-color="silver" border-bottom-style="solid" border-bottom-width="1pt"> + <fo:block> + <fo:block color="rgb-icc(0, 161, 222, #CMYK, 0.85, 0.19, 0, 0) " font-family="TheSansB7" font-size="12pt" font-style="normal" font-weight="normal" line-height="14pt" text-align="right">Investment details</fo:block> + </fo:block> + </fo:table-cell> + </fo:table-row> + + </fo:table-body> + </fo:table> + <fo:block break-before="page"/> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <eval expected="Before the table" xpath="//pageViewport[1]//flow/block[1]//text"/> + <eval expected="595275" xpath="//pageViewport[2]//flow/block[1]/@ipd"/> + <eval expected="28846" xpath="//pageViewport[2]//flow/block[1]/@bpd"/> + </checks> +</testcase> |