aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2005-09-24 23:55:41 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2005-09-24 23:55:41 +0000
commite83ae89e75c0b656c1c0e320b1e2132fb18073c9 (patch)
tree363406af2bd60cc876e4f7aa419ddb13f7d978c2 /test
parent78a328cba576a8857eb4a299741b7568736f075d (diff)
downloadxmlgraphics-fop-e83ae89e75c0b656c1c0e320b1e2132fb18073c9.tar.gz
xmlgraphics-fop-e83ae89e75c0b656c1c0e320b1e2132fb18073c9.zip
Added check for both page-height and page-width set to indefinite; use fallback (auto) for the appropriate one
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@291351 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/fotree/testcases/page-dimension_both_indefinite.fo74
1 files changed, 74 insertions, 0 deletions
diff --git a/test/fotree/testcases/page-dimension_both_indefinite.fo b/test/fotree/testcases/page-dimension_both_indefinite.fo
new file mode 100644
index 000000000..7a102636f
--- /dev/null
+++ b/test/fotree/testcases/page-dimension_both_indefinite.fo
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+ Copyright 2005 The Apache Software Foundation
+
+ Licensed 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$ -->
+<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:test="http://xmlgraphics.apache.org/fop/test">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="lr-tb-0"
+ page-width="indefinite" page-height="indefinite"
+ writing-mode="lr-tb"
+ margin="20pt">
+ <!-- page-width should properly fall back to 8.26 * 72000 -->
+ <test:assert property="page-width" expected="594720mpt" />
+ <fo:region-body />
+ </fo:simple-page-master>
+ <fo:simple-page-master master-name="lr-tb-90"
+ page-width="indefinite" page-height="indefinite"
+ writing-mode="lr-tb" reference-orientation="90"
+ margin="20pt">
+ <!-- page-height should properly fall back to 11 * 72000 -->
+ <test:assert property="page-height" expected="792000mpt" />
+ <fo:region-body />
+ </fo:simple-page-master>
+ <fo:simple-page-master master-name="tb-rl-0"
+ page-width="indefinite" page-height="indefinite"
+ writing-mode="tb-rl" reference-orientation="0"
+ margin="20pt">
+ <!-- page-height should properly fall back to 11 * 72000 -->
+ <test:assert property="page-height" expected="792000mpt" />
+ <fo:region-body />
+ </fo:simple-page-master>
+ <fo:simple-page-master master-name="tb-rl-90"
+ page-width="indefinite" page-height="indefinite"
+ writing-mode="tb-rl" reference-orientation="90"
+ margin="20pt">
+ <!-- page-width should properly fall back to 8.26 * 72000 -->
+ <test:assert property="page-width" expected="594720mpt" />
+ <fo:region-body />
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="lr-tb-0">
+ <fo:flow flow-name="xsl-region-body">
+ <fo:block>Testing page-height and page-width both "indefinite"</fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+ <fo:page-sequence master-reference="lr-tb-90">
+ <fo:flow flow-name="xsl-region-body">
+ <fo:block>Testing page-height and page-width both "indefinite"</fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+ <fo:page-sequence master-reference="tb-rl-0">
+ <fo:flow flow-name="xsl-region-body">
+ <fo:block>Testing page-height and page-width both "indefinite"</fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+ <fo:page-sequence master-reference="tb-rl-90">
+ <fo:flow flow-name="xsl-region-body">
+ <fo:block>Testing page-height and page-width both "indefinite"</fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+</fo:root>