]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Test cases for display-align and space-before|after for block-container. No checks...
authorJeremias Maerki <jeremias@apache.org>
Tue, 18 Jan 2005 07:02:01 +0000 (07:02 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 18 Jan 2005 07:02:01 +0000 (07:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198283 13f79535-47bb-0310-9956-ffa450edef68

test/layoutengine/testcases/block-container-abs5.xml [new file with mode: 0644]
test/layoutengine/testcases/block-container5.xml [new file with mode: 0644]

diff --git a/test/layoutengine/testcases/block-container-abs5.xml b/test/layoutengine/testcases/block-container-abs5.xml
new file mode 100644 (file)
index 0000000..dea127e
--- /dev/null
@@ -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 (file)
index 0000000..4c501b2
--- /dev/null
@@ -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>