You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/11/22 10:57:50 UTC

svn commit: r348138 - in /xmlgraphics/fop/trunk/test/layoutengine: disabled-testcases.xml standard-testcases/footnote_in_list.xml standard-testcases/footnote_in_table.xml

Author: jeremias
Date: Tue Nov 22 01:57:42 2005
New Revision: 348138

URL: http://svn.apache.org/viewcvs?rev=348138&view=rev
Log:
Checks for Bugzilla #37579.

Added:
    xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/footnote_in_list.xml   (with props)
    xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/footnote_in_table.xml   (with props)
Modified:
    xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.xml

Modified: xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.xml?rev=348138&r1=348137&r2=348138&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.xml (original)
+++ xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.xml Tue Nov 22 01:57:42 2005
@@ -99,6 +99,22 @@
     regions.</description>
   </testcase>
   <testcase>
+    <name>footnote in lists</name>
+    <file>footnote_in_list.xml</file>
+    <description>Element lists for lists are created by combining the 
+    element lists from list-item-label and list-item-body. The 
+    footnotes contained in the KnuthBlockBoxes are not propagated to 
+    the combined element list.</description>
+  </testcase>
+  <testcase>
+    <name>footnote in tables</name>
+    <file>footnote_in_table.xml</file>
+    <description>Element lists for tables are created by combining the 
+    element lists from the individual table-cells. The footnotes 
+    contained in the KnuthBlockBoxes are not propagated to the combined 
+    element list.</description>
+  </testcase>
+  <testcase>
     <name>inline block keep-together</name>
     <file>inline-block_keep-together.xml</file>
     <description>Block-level content in fo:inlines may produce

Added: xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/footnote_in_list.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/footnote_in_list.xml?rev=348138&view=auto
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/footnote_in_list.xml (added)
+++ xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/footnote_in_list.xml Tue Nov 22 01:57:42 2005
@@ -0,0 +1,68 @@
+<?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 footnotes in lists.
+    </p>
+    <p>http://issues.apache.org/bugzilla/show_bug.cgi?id=37579</p>
+  </info>
+  <fo>
+    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+      <fo:layout-master-set>
+        <fo:simple-page-master master-name="simple" page-height="5in" page-width="5in">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="simple">
+        <fo:flow flow-name="xsl-region-body">
+          <fo:block font-size="12pt" space-before="3pt" text-indent="0.75cm" text-align="justify">
+            Footnote in normal block<fo:footnote>
+              <fo:inline font-size="60%" baseline-shift="super">1)</fo:inline>
+              <fo:footnote-body>
+                <fo:block start-indent="0.5cm" text-indent="-0.5cm">
+                  <fo:inline font-size="60%" baseline-shift="super">1)</fo:inline> The footnote from the normal block.</fo:block>
+              </fo:footnote-body>
+            </fo:footnote>.
+          </fo:block>
+          <fo:list-block provisional-distance-between-starts="50pt" provisional-label-separation="10pt">
+            <fo:list-item>
+              <fo:list-item-label end-indent="label-end()">
+                <fo:block>label</fo:block>
+              </fo:list-item-label>
+              <fo:list-item-body start-indent="body-start()">
+                <fo:block>
+                  Footnote in list<fo:footnote>
+                  <fo:inline font-size="60%" baseline-shift="super">2)</fo:inline>
+                    <fo:footnote-body>
+                      <fo:block start-indent="0.5cm" text-indent="-0.5cm">
+                        <fo:inline font-size="60%" baseline-shift="super">2)</fo:inline> The footnote from the list.</fo:block>
+                    </fo:footnote-body>
+                  </fo:footnote>.
+                </fo:block>
+              </fo:list-item-body>
+            </fo:list-item>
+          </fo:list-block>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <eval expected="2" xpath="count(//footnote/block)"/>
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/footnote_in_list.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/footnote_in_list.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/footnote_in_table.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/footnote_in_table.xml?rev=348138&view=auto
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/footnote_in_table.xml (added)
+++ xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/footnote_in_table.xml Tue Nov 22 01:57:42 2005
@@ -0,0 +1,72 @@
+<?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 footnotes in tables.
+    </p>
+    <p>http://issues.apache.org/bugzilla/show_bug.cgi?id=37579</p>
+  </info>
+  <fo>
+    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+      <fo:layout-master-set>
+        <fo:simple-page-master master-name="simple" page-height="5in" page-width="5in">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="simple">
+        <fo:flow flow-name="xsl-region-body">
+          <fo:block font-size="12pt" space-before="3pt" text-indent="0.75cm" text-align="justify">
+            Footnote in normal block<fo:footnote>
+              <fo:inline font-size="60%" baseline-shift="super">1)</fo:inline>
+              <fo:footnote-body>
+                <fo:block start-indent="0.5cm" text-indent="-0.5cm">
+                  <fo:inline font-size="60%" baseline-shift="super">1)</fo:inline> The footnote from the normal block.</fo:block>
+              </fo:footnote-body>
+            </fo:footnote>.
+          </fo:block>
+          <fo:table table-layout="fixed" width="100%" border-collapse="separate">
+            <fo:table-column column-width="proportional-column-width(1)"/>
+            <fo:table-column column-width="proportional-column-width(2)"/>
+            <fo:table-body>
+              <fo:table-row>
+                <fo:table-cell>
+                  <fo:block>table-cell1</fo:block>
+                </fo:table-cell>
+                <fo:table-cell>
+                  <fo:block>
+                    Footnote in table<fo:footnote>
+                      <fo:inline font-size="60%" baseline-shift="super">2)</fo:inline>
+                      <fo:footnote-body>
+                        <fo:block start-indent="0.5cm" text-indent="-0.5cm">
+                          <fo:inline font-size="60%" baseline-shift="super">2)</fo:inline> The footnote from the table.</fo:block>
+                      </fo:footnote-body>
+                    </fo:footnote>.
+                  </fo:block>
+                </fo:table-cell>
+              </fo:table-row>
+            </fo:table-body>
+          </fo:table>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <eval expected="2" xpath="count(//footnote/block)"/>
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/footnote_in_table.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/footnote_in_table.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