diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-09-05 09:17:38 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-09-05 09:17:38 +0000 |
commit | 0389ee358b2b4f4fbe9ebfd7e9cf9d124030dcd5 (patch) | |
tree | 9cddbea3a328fb0301ce81f0f662f89086174fba /test/layoutengine | |
parent | c40720187a665b216e6f6098cbeb24dbb350c187 (diff) | |
download | xmlgraphics-fop-0389ee358b2b4f4fbe9ebfd7e9cf9d124030dcd5.tar.gz xmlgraphics-fop-0389ee358b2b4f4fbe9ebfd7e9cf9d124030dcd5.zip |
Bugzilla #36487:
Forgot to remove the two test cases Manuel indicated.
Submitted by: Manuel Mall <mm.at.arcus.com.au>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278699 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/layoutengine')
-rw-r--r-- | test/layoutengine/testcases/region-body_margin_relative_reference-orientation_90.xml | 107 | ||||
-rw-r--r-- | test/layoutengine/testcases/region-body_margin_relative_writing-mode_rl-tb.xml | 107 |
2 files changed, 0 insertions, 214 deletions
diff --git a/test/layoutengine/testcases/region-body_margin_relative_reference-orientation_90.xml b/test/layoutengine/testcases/region-body_margin_relative_reference-orientation_90.xml deleted file mode 100644 index fa05f777c..000000000 --- a/test/layoutengine/testcases/region-body_margin_relative_reference-orientation_90.xml +++ /dev/null @@ -1,107 +0,0 @@ -<?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 relative margin on region (region-body). - </p> - </info> - <variables> - <img>../../resources/images/bgimg300dpi.jpg</img> - </variables> - <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="3in" page-height="5in" margin="5%" reference-orientation="90"> - <fo:region-body margin="5%" background-color="yellow" /> - <fo:region-before extent="5%" background-color="blue" precedence="true" /> - <fo:region-after extent="5%" background-color="green" precedence="true" /> - <fo:region-start extent="5%" background-color="red" /> - <fo:region-end extent="5%" background-color="orange" /> - </fo:simple-page-master> - </fo:layout-master-set> - <fo:page-sequence master-reference="normal" white-space-collapse="true"> - <fo:static-content flow-name="xsl-region-before"> - <fo:block> - r e g i o n b e f o r e - </fo:block> - </fo:static-content> - <fo:static-content flow-name="xsl-region-after"> - <fo:block> - r e g i o n a f t e r - </fo:block> - </fo:static-content> - <fo:static-content flow-name="xsl-region-start"> - <fo:block> - r e g i o n s t a r t - </fo:block> - </fo:static-content> - <fo:static-content flow-name="xsl-region-end"> - <fo:block> - r e g i o n e n d - </fo:block> - </fo:static-content> - <fo:flow flow-name="xsl-region-body"> - <fo:block> - Demonstrates relative 5% margins on all regions and the page master with a - landscape reference orientation. - The page size is 5in x 3in. This gives top and bottom margins of 0.25in and - left and right margins 0.15in. - </fo:block> - </fo:flow> - </fo:page-sequence> - </fo:root> - </fo> - <checks> - <!-- region before --> - <eval expected="color=#0000ff" xpath="//page/regionViewport[1]/@background"/> - <eval expected="324000" xpath="//page/regionViewport[1]/@ipd"/> - <eval expected="18000" xpath="//page/regionViewport[1]/@bpd"/> - <eval expected="10800 18000 18000 324000" xpath="//page/regionViewport[1]/@rect"/> - <eval expected="324000" xpath="//page/regionViewport[1]/regionBefore/@ipd"/> - <eval expected="18000" xpath="//page/regionViewport[1]/regionBefore/@bpd"/> - <!-- region start --> - <eval expected="color=#ff0000" xpath="//page/regionViewport[2]/@background"/> - <eval expected="10800" xpath="//page/regionViewport[2]/@ipd"/> - <eval expected="158400" xpath="//page/regionViewport[2]/@bpd"/> - <eval expected="28800 331200 158400 10800" xpath="//page/regionViewport[2]/@rect"/> - <eval expected="10800" xpath="//page/regionViewport[2]/regionStart/@ipd"/> - <eval expected="158400" xpath="//page/regionViewport[2]/regionStart/@bpd"/> - <!-- region end --> - <eval expected="color=#ffa500" xpath="//page/regionViewport[3]/@background"/> - <eval expected="10800" xpath="//page/regionViewport[3]/@ipd"/> - <eval expected="158400" xpath="//page/regionViewport[3]/@bpd"/> - <eval expected="28800 18000 158400 10800" xpath="//page/regionViewport[3]/@rect"/> - <eval expected="10800" xpath="//page/regionViewport[3]/regionEnd/@ipd"/> - <eval expected="158400" xpath="//page/regionViewport[3]/regionEnd/@bpd"/> - <!-- region after --> - <eval expected="color=#008000" xpath="//page/regionViewport[4]/@background"/> - <eval expected="324000" xpath="//page/regionViewport[4]/@ipd"/> - <eval expected="18000" xpath="//page/regionViewport[4]/@bpd"/> - <eval expected="187200 18000 18000 324000" xpath="//page/regionViewport[4]/@rect"/> - <eval expected="324000" xpath="//page/regionViewport[4]/regionAfter/@ipd"/> - <eval expected="18000" xpath="//page/regionViewport[4]/regionAfter/@bpd"/> - <!-- region body --> - <eval expected="color=#ffff00" xpath="//page/regionViewport[5]/@background"/> - <eval expected="302400" xpath="//page/regionViewport[5]/@ipd"/> - <eval expected="158400" xpath="//page/regionViewport[5]/@bpd"/> - <eval expected="28800 28800 158400 302400" xpath="//page/regionViewport[5]/@rect"/> - <eval expected="302400" xpath="//page/regionViewport[5]/regionBody/@ipd"/> - <eval expected="158400" xpath="//page/regionViewport[5]/regionBody/@bpd"/> - </checks> -</testcase> diff --git a/test/layoutengine/testcases/region-body_margin_relative_writing-mode_rl-tb.xml b/test/layoutengine/testcases/region-body_margin_relative_writing-mode_rl-tb.xml deleted file mode 100644 index 5216ff0e2..000000000 --- a/test/layoutengine/testcases/region-body_margin_relative_writing-mode_rl-tb.xml +++ /dev/null @@ -1,107 +0,0 @@ -<?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 relative margin on regions (region-body).
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <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="3in" page-height="5in" margin="5%" writing-mode="rl">
- <fo:region-body margin-top="10%" margin-bottom="5%" margin-left="5%" margin-right="10%" background-color="yellow" />
- <fo:region-before extent="10%" background-color="blue" precedence="true" />
- <fo:region-after extent="5%" background-color="green" precedence="true" />
- <fo:region-start extent="10%" background-color="red" />
- <fo:region-end extent="5%" background-color="orange" />
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- r e g i o n b e f o r e
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block>
- r e g i o n a f t e r
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-start">
- <fo:block>
- r e g i o n s t a r t
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-end">
- <fo:block>
- r e g i o n e n d
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- Demonstrates relative 5% margin on the page master, 10% margin on regions before
- and start and 5% margin on regions after and end. Corresponding margins are set
- on the region body. The page size is 5in x 3in. This gives top and right margins
- of 0.25in and left and bottom margins of 0.15in.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- region before -->
- <eval expected="color=#0000ff" xpath="//page/regionViewport[1]/@background"/>
- <eval expected="194400" xpath="//page/regionViewport[1]/@ipd"/>
- <eval expected="36000" xpath="//page/regionViewport[1]/@bpd"/>
- <eval expected="10800 18000 194400 36000" xpath="//page/regionViewport[1]/@rect"/>
- <eval expected="194400" xpath="//page/regionViewport[1]/regionBefore/@ipd"/>
- <eval expected="36000" xpath="//page/regionViewport[1]/regionBefore/@bpd"/>
- <!-- region start -->
- <eval expected="color=#ff0000" xpath="//page/regionViewport[2]/@background"/>
- <eval expected="21600" xpath="//page/regionViewport[2]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[2]/@bpd"/>
- <eval expected="183600 54000 21600 270000" xpath="//page/regionViewport[2]/@rect"/>
- <eval expected="21600" xpath="//page/regionViewport[2]/regionStart/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[2]/regionStart/@bpd"/>
- <!-- region end -->
- <eval expected="color=#ffa500" xpath="//page/regionViewport[3]/@background"/>
- <eval expected="10800" xpath="//page/regionViewport[3]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[3]/@bpd"/>
- <eval expected="10800 54000 10800 270000" xpath="//page/regionViewport[3]/@rect"/>
- <eval expected="10800" xpath="//page/regionViewport[3]/regionEnd/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[3]/regionEnd/@bpd"/>
- <!-- region after -->
- <eval expected="color=#008000" xpath="//page/regionViewport[4]/@background"/>
- <eval expected="194400" xpath="//page/regionViewport[4]/@ipd"/>
- <eval expected="18000" xpath="//page/regionViewport[4]/@bpd"/>
- <eval expected="10800 324000 194400 18000" xpath="//page/regionViewport[4]/@rect"/>
- <eval expected="194400" xpath="//page/regionViewport[4]/regionAfter/@ipd"/>
- <eval expected="18000" xpath="//page/regionViewport[4]/regionAfter/@bpd"/>
- <!-- region body -->
- <eval expected="color=#ffff00" xpath="//page/regionViewport[5]/@background"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/@bpd"/>
- <eval expected="21600 54000 162000 270000" xpath="//page/regionViewport[5]/@rect"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/regionBody/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/regionBody/@bpd"/>
- </checks>
-</testcase>
|