xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r279733 - in /xmlgraphics/fop/trunk/test/layoutengine: disabled-testcases.txt testcases/block_space-before_space-after_3.xml
Date Fri, 09 Sep 2005 08:49:51 GMT
Author: jeremias
Date: Fri Sep  9 01:49:46 2005
New Revision: 279733

URL: http://svn.apache.org/viewcvs?rev=279733&view=rev
Log:
Implemented the example under 4.3.1 Space-resolution Rules as a test case. Test fails.

Added:
    xmlgraphics/fop/trunk/test/layoutengine/testcases/block_space-before_space-after_3.xml
  (with props)
Modified:
    xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.txt

Modified: xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.txt
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.txt?rev=279733&r1=279732&r2=279733&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.txt (original)
+++ xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.txt Fri Sep  9 01:49:46 2005
@@ -2,6 +2,7 @@
 block-container_reference-orientation_bug36391.xml
 block_font-stretch.xml
 block_space-before_space-after_2.xml
+block_space-before_space-after_3.xml
 block_word-spacing.xml
 block_word-spacing_text-align_justify.xml
 external-graphic_oversized.xml

Added: xmlgraphics/fop/trunk/test/layoutengine/testcases/block_space-before_space-after_3.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/testcases/block_space-before_space-after_3.xml?rev=279733&view=auto
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/testcases/block_space-before_space-after_3.xml
(added)
+++ xmlgraphics/fop/trunk/test/layoutengine/testcases/block_space-before_space-after_3.xml
Fri Sep  9 01:49:46 2005
@@ -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 block-level space properties. This is the space-resolution example
in "4.3.1 Space-resolution Rules".
+    </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 background-color="lightgray"/>
+        </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 space-before="10pt" background-color="yellow">
+            <fo:block space-before="4pt" space-before.conditionality="retain">
+              <fo:block space-before="5pt" background-color="orange">
+                In olden times when wishing still helped one, there lived a king whose daughters
+              </fo:block>
+            </fo:block>
+          </fo:block>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <!-- Only the third space (5pt, discard) survives the space-resolution. -->
+    <element-list category="breaker">
+      <box w="0"/>
+      <penalty w="0" p="INF"/>
+      <glue w="5000" aux="true"/>
+      <box w="14400"/>
+      <box w="14400"/>
+      <skip>3</skip>
+    </element-list>
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/block_space-before_space-after_3.xml
------------------------------------------------------------------------------
    svn:keywords = Id



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message