]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Test cases showing ClassCastExceptions with fo:blocks inside fo:inline and fo:wrapper...
authorJeremias Maerki <jeremias@apache.org>
Tue, 21 Jun 2005 12:04:12 +0000 (12:04 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 21 Jun 2005 12:04:12 +0000 (12:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198756 13f79535-47bb-0310-9956-ffa450edef68

test/layoutengine/disabled-testcases.txt
test/layoutengine/testcases/inline1.xml [new file with mode: 0644]
test/layoutengine/testcases/wrapper1.xml [new file with mode: 0644]

index 83eb9fd37894a7c8a266a8a7e9c58d2274e38742..f27e30ab8c12b67201fe43618e20ab59921568de 100644 (file)
@@ -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 (file)
index 0000000..5f7e74b
--- /dev/null
@@ -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 (file)
index 0000000..542cd89
--- /dev/null
@@ -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>