diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2009-03-22 19:18:14 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2009-03-22 19:18:14 +0000 |
commit | 39846b082abe7df751bd45cd70abe61e842fbb20 (patch) | |
tree | 37e26d3a83225b496b70d8dc299f98aac7614a4a /test/layoutengine | |
parent | 43ecaa845e9042fda99f8b5e91834e8d4b2c1689 (diff) | |
download | xmlgraphics-fop-39846b082abe7df751bd45cd70abe61e842fbb20.tar.gz xmlgraphics-fop-39846b082abe7df751bd45cd70abe61e842fbb20.zip |
Bugzilla 46489:
Issue when combining page-position="last" with a block with break-before as a descendant of a table.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@757239 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/layoutengine')
-rw-r--r-- | test/layoutengine/standard-testcases/page-position-last_break-before_bugzilla46489.xml | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/test/layoutengine/standard-testcases/page-position-last_break-before_bugzilla46489.xml b/test/layoutengine/standard-testcases/page-position-last_break-before_bugzilla46489.xml new file mode 100644 index 000000000..d3c106852 --- /dev/null +++ b/test/layoutengine/standard-testcases/page-position-last_break-before_bugzilla46489.xml @@ -0,0 +1,117 @@ +<?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 page-masters (reference orientation).
+ </p>
+ </info>
+ <fo>
+ <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="OTCTermsheetPageMasterFrontPage" page-width="210mm" page-height="297mm" margin-bottom="12.7mm" margin-right="12.7mm" margin-top="12.7mm" margin-left="12.7mm">
+ <fo:region-body margin-bottom="30mm" margin-top="42.3mm" region-name="PageBody"/>
+ <fo:region-before region-name="PageHeaderFrontPage" extent="42.3mm"/>
+ <fo:region-after precedence="true" region-name="PageFooter" extent="30mm"/>
+ </fo:simple-page-master>
+ <fo:simple-page-master master-name="OTCTermsheetPageMasterFollowing" page-width="210mm" page-height="297mm" margin-bottom="12.7mm" margin-right="12.7mm" margin-top="12.7mm" margin-left="12.7mm">
+ <fo:region-body margin-bottom="30mm" margin-top="20mm" region-name="PageBody"/>
+ <fo:region-before region-name="PageHeaderFollowing" extent="20mm"/>
+ <fo:region-after precedence="true" region-name="PageFooter" extent="30mm"/>
+ </fo:simple-page-master>
+ <fo:page-sequence-master master-name="OTCTermsheetPageSeq">
+ <fo:repeatable-page-master-alternatives>
+ <fo:conditional-page-master-reference page-position="first" master-reference="OTCTermsheetPageMasterFrontPage"/>
+ <fo:conditional-page-master-reference page-position="rest" master-reference="OTCTermsheetPageMasterFollowing"/>
+ <fo:conditional-page-master-reference page-position="last" master-reference="OTCTermsheetPageMasterFollowing"/>
+ </fo:repeatable-page-master-alternatives>
+ </fo:page-sequence-master>
+ </fo:layout-master-set>
+ <fo:page-sequence initial-page-number="1" force-page-count="no-force" master-reference="OTCTermsheetPageSeq">
+ <fo:flow flow-name="PageBody" font-family="Times New Roman" font-size="10pt" line-height="12pt">
+ <fo:block>
+ <fo:table table-layout="fixed" width="100%">
+ <fo:table-column column-width="proportional-column-width(32.36)" column-number="1"/>
+ <fo:table-column column-width="proportional-column-width(67.64)" column-number="2"/>
+ <fo:table-body>
+ <fo:table-row>
+ <fo:table-cell padding="4pt">
+ <fo:block>
+ <fo:block>
+ <fo:inline color="#6D6E71">Some text</fo:inline>
+ </fo:block>
+ </fo:block>
+ </fo:table-cell>
+ <fo:table-cell padding="4pt">
+ <fo:block>
+ <fo:block text-align="justify">More text before break. More text before break. More text before break.</fo:block>
+ <fo:block>
+ <fo:leader/>
+ </fo:block>
+ </fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+ </fo:table-body>
+ </fo:table>
+ <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 padding="4pt">
+ <fo:block>
+ <fo:block id="the-block" line-height="14pt" color="#6D6E71" font-size="11pt" font-family="Arial" text-align="left" page-break-before="always">TEXT AFTER BREAK</fo:block>
+ <fo:block>
+ <fo:leader/>
+ </fo:block>
+ </fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+ </fo:table-body>
+ </fo:table>
+ <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 padding="4pt">
+ <fo:block>
+ <fo:block>
+ <fo:leader/>
+ </fo:block>
+ <fo:block>
+ <fo:leader/>
+ </fo:block>
+ <fo:block text-align="justify">blah blah blah</fo:block>
+ <fo:block>
+ <fo:leader/>
+ </fo:block>
+ <fo:block text-align="justify">blah blah blah</fo:block>
+ </fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+ </fo:table-body>
+ </fo:table>
+ </fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+ </fo:root>
+ </fo>
+ <checks>
+ <true xpath="count(//page) = 2" />
+ </checks>
+</testcase>
|