aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-06-21 12:04:12 +0000
committerJeremias Maerki <jeremias@apache.org>2005-06-21 12:04:12 +0000
commit4b49d263fc0b9489934f9649b890eaf039a9490b (patch)
tree3f9eab55f640e0def87715107835130f46d38260 /test
parent00be416963eb3b4f2bfa6b3779fecd2a5b3bd6a9 (diff)
downloadxmlgraphics-fop-4b49d263fc0b9489934f9649b890eaf039a9490b.tar.gz
xmlgraphics-fop-4b49d263fc0b9489934f9649b890eaf039a9490b.zip
Test cases showing ClassCastExceptions with fo:blocks inside fo:inline and fo:wrapper because InlineLayoutManager currently doesn't expect block-level nodes.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198756 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/layoutengine/disabled-testcases.txt2
-rw-r--r--test/layoutengine/testcases/inline1.xml41
-rw-r--r--test/layoutengine/testcases/wrapper1.xml41
3 files changed, 84 insertions, 0 deletions
diff --git a/test/layoutengine/disabled-testcases.txt b/test/layoutengine/disabled-testcases.txt
index 83eb9fd37..f27e30ab8 100644
--- a/test/layoutengine/disabled-testcases.txt
+++ b/test/layoutengine/disabled-testcases.txt
@@ -1,5 +1,6 @@
external-graphic1.xml
external-graphic2.xml
+inline1.xml
keep-with-previous2.xml
keep-with-previous3.xml
keep-with-previous4.xml
@@ -9,3 +10,4 @@ normal-breaking4.xml
table-border-collapse1.xml
table-border-collapse2.xml
table-fixed2.xml
+wrapper1.xml
diff --git a/test/layoutengine/testcases/inline1.xml b/test/layoutengine/testcases/inline1.xml
new file mode 100644
index 000000000..5f7e74b35
--- /dev/null
+++ b/test/layoutengine/testcases/inline1.xml
@@ -0,0 +1,41 @@
+<?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 fo:inline and nested nodes.
+ </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><fo:inline>part1<fo:block/>part2</fo:inline></fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+ </fo:root>
+ </fo>
+ <checks>
+ <!-- currently causes a ClassCastException -->
+ </checks>
+</testcase>
diff --git a/test/layoutengine/testcases/wrapper1.xml b/test/layoutengine/testcases/wrapper1.xml
new file mode 100644
index 000000000..542cd8938
--- /dev/null
+++ b/test/layoutengine/testcases/wrapper1.xml
@@ -0,0 +1,41 @@
+<?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 fo:wrapper and nested nodes.
+ </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><fo:wrapper>part1<fo:block/>part2</fo:wrapper></fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+ </fo:root>
+ </fo>
+ <checks>
+ <!-- currently causes a ClassCastException -->
+ </checks>
+</testcase>