diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-01-18 07:02:01 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-01-18 07:02:01 +0000 |
commit | 5376c8e896ae4b39657fb8c8e9cf246260823318 (patch) | |
tree | 333d3e3f6ffa2bc4d84f8c2913e6ef114d6fc5dc /test | |
parent | 670bc253801350ed8476aa4f7b05348337b14020 (diff) | |
download | xmlgraphics-fop-5376c8e896ae4b39657fb8c8e9cf246260823318.tar.gz xmlgraphics-fop-5376c8e896ae4b39657fb8c8e9cf246260823318.zip |
Test cases for display-align and space-before|after for block-container. No checks, yet.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198283 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/layoutengine/testcases/block-container-abs5.xml | 59 | ||||
-rw-r--r-- | test/layoutengine/testcases/block-container5.xml | 55 |
2 files changed, 114 insertions, 0 deletions
diff --git a/test/layoutengine/testcases/block-container-abs5.xml b/test/layoutengine/testcases/block-container-abs5.xml new file mode 100644 index 000000000..dea127e0b --- /dev/null +++ b/test/layoutengine/testcases/block-container-abs5.xml @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + 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$ --> +<testcase> + <info> + <p> + This test checks display-align on absolutely positioned block-containers. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" white-space-collapse="true"> + <fo:flow flow-name="xsl-region-body"> + <fo:block-container left="10pt" top="10pt" width="150pt" height="150pt" absolute-position="absolute" background-color="orange" display-align="auto" reference-orientation="0"> + <fo:block background-color="yellow">display-align="auto"</fo:block> + <fo:block background-color="yellow">reference-orientation="0"</fo:block> + </fo:block-container> + <fo:block-container left="190pt" top="10pt" width="150pt" height="150pt" absolute-position="absolute" background-color="orange" display-align="before" reference-orientation="90"> + <fo:block background-color="yellow">display-align="before"</fo:block> + <fo:block background-color="yellow">reference-orientation="90"</fo:block> + </fo:block-container> + <fo:block-container left="10pt" top="190pt" width="150pt" height="150pt" absolute-position="absolute" background-color="orange" display-align="center" reference-orientation="180"> + <fo:block background-color="yellow">display-align="center"</fo:block> + <fo:block background-color="yellow">reference-orientation="180"</fo:block> + </fo:block-container> + <fo:block-container left="190pt" top="190pt" width="150pt" height="150pt" absolute-position="absolute" background-color="orange" display-align="after" reference-orientation="270"> + <fo:block background-color="yellow">display-align="after"</fo:block> + <fo:block background-color="yellow">reference-orientation="270"</fo:block> + </fo:block-container> + <fo:block-container left="30pt" top="150pt" width="150pt" absolute-position="absolute" background-color="orange" display-align="center"> + <fo:block background-color="yellow">display-align="center"</fo:block> + <fo:block background-color="yellow">no height</fo:block> + </fo:block-container> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/block-container5.xml b/test/layoutengine/testcases/block-container5.xml new file mode 100644 index 000000000..4c501b28e --- /dev/null +++ b/test/layoutengine/testcases/block-container5.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + 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$ --> +<testcase> + <info> + <p> + This test checks display-align on in-flow block-containers. It also tests space-before|after in conjunction with reference-orientation. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" white-space-collapse="true"> + <fo:flow flow-name="xsl-region-body"> + <fo:block-container width="120pt" height="80pt" reference-orientation="0" display-align="auto" background-color="yellow"> + <fo:block background-color="orange">display-align = "auto"</fo:block> + <fo:block background-color="orange">ro = 0</fo:block> + </fo:block-container> + <fo:block-container width="80pt" height="120pt" reference-orientation="90" display-align="before" background-color="yellow" space-before="10pt" space-after="10pt"> + <fo:block background-color="orange">display-align = "before"</fo:block> + <fo:block background-color="orange">ro = 90</fo:block> + </fo:block-container> + <fo:block-container width="120pt" height="80pt" reference-orientation="180" display-align="center" background-color="yellow"> + <fo:block background-color="orange">display-align = "center"</fo:block> + <fo:block background-color="orange">ro = 180</fo:block> + </fo:block-container> + <fo:block-container width="80pt" height="120pt" reference-orientation="270" display-align="after" background-color="yellow" space-before="10pt"> + <fo:block background-color="orange">display-align = "after"</fo:block> + <fo:block background-color="orange">ro = 270</fo:block> + </fo:block-container> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> +</checks> +</testcase> |