diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-11-22 09:57:42 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-11-22 09:57:42 +0000 |
commit | eb182231d1b438d89770a4c01a358379eec1fd8f (patch) | |
tree | 7fecb2684f63271e32a0e8287cd953ae1388ac48 /test | |
parent | 68e528df282383c9edd974802d566131ae8e17b4 (diff) | |
download | xmlgraphics-fop-eb182231d1b438d89770a4c01a358379eec1fd8f.tar.gz xmlgraphics-fop-eb182231d1b438d89770a4c01a358379eec1fd8f.zip |
Checks for Bugzilla #37579.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@348138 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rwxr-xr-x | test/layoutengine/disabled-testcases.xml | 16 | ||||
-rw-r--r-- | test/layoutengine/standard-testcases/footnote_in_list.xml | 68 | ||||
-rw-r--r-- | test/layoutengine/standard-testcases/footnote_in_table.xml | 72 |
3 files changed, 156 insertions, 0 deletions
diff --git a/test/layoutengine/disabled-testcases.xml b/test/layoutengine/disabled-testcases.xml index 1089827d9..ad9e8a7fa 100755 --- a/test/layoutengine/disabled-testcases.xml +++ b/test/layoutengine/disabled-testcases.xml @@ -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 diff --git a/test/layoutengine/standard-testcases/footnote_in_list.xml b/test/layoutengine/standard-testcases/footnote_in_list.xml new file mode 100644 index 000000000..0d25bdf22 --- /dev/null +++ b/test/layoutengine/standard-testcases/footnote_in_list.xml @@ -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> diff --git a/test/layoutengine/standard-testcases/footnote_in_table.xml b/test/layoutengine/standard-testcases/footnote_in_table.xml new file mode 100644 index 000000000..c9cf840de --- /dev/null +++ b/test/layoutengine/standard-testcases/footnote_in_table.xml @@ -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> |