jeremias 2005/01/17 23:02:01 Added: test/layoutengine/testcases block-container5.xml block-container-abs5.xml Log: Test cases for display-align and space-before|after for block-container. No checks, yet. Revision Changes Path 1.1 xml-fop/test/layoutengine/testcases/block-container5.xml Index: block-container5.xml =================================================================== <?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: block-container5.xml,v 1.1 2005/01/18 07:02:01 jeremias Exp $ --> <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> 1.1 xml-fop/test/layoutengine/testcases/block-container-abs5.xml Index: block-container-abs5.xml =================================================================== <?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: block-container-abs5.xml,v 1.1 2005/01/18 07:02:01 jeremias Exp $ --> <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>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]