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 2006/05/18 18:42:56 UTC

svn commit: r407588 - in /xmlgraphics/fop/trunk/test/layoutengine: disabled-testcases.xml standard-testcases/table_in_marker_bug39560.xml

Author: jeremias
Date: Thu May 18 09:42:56 2006
New Revision: 407588

URL: http://svn.apache.org/viewvc?rev=407588&view=rev
Log:
Testcase for Bugzilla #39560

Added:
    xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/table_in_marker_bug39560.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/viewvc/xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.xml?rev=407588&r1=407587&r2=407588&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.xml (original)
+++ xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.xml Thu May 18 09:42:56 2006
@@ -324,6 +324,12 @@
     <reference>http://issues.apache.org/bugzilla/show_bug.cgi?id=35656</reference>
   </testcase>
   <testcase>
+    <name>table in marker (Bug 39560)</name>
+    <file>table_in_marker_bug39560.xml</file>
+    <description>When a table is put in a marker and that is referenced using retrieve-marker, an NPE occurs during the cloning process.</description>
+    <reference>http://issues.apache.org/bugzilla/show_bug.cgi?id=39560</reference>
+  </testcase>
+  <testcase>
     <name>Border conditionality on table</name>
     <file>table_border-width_conditionality.xml</file>
     <description>The code should be ok, but the test case uses shorthands and therefore

Added: xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/table_in_marker_bug39560.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/table_in_marker_bug39560.xml?rev=407588&view=auto
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/table_in_marker_bug39560.xml (added)
+++ xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/table_in_marker_bug39560.xml Thu May 18 09:42:56 2006
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2006 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 Bugzilla #39560 where a table is defined inside a marker.
+    </p>
+  </info>
+  <fo>
+    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+      <fo:layout-master-set>
+        <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in">
+          <fo:region-body margin="0.5in 0"/>
+          <fo:region-after extent="0.5in"/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="normal">
+        <fo:static-content flow-name="xsl-region-after">
+          <fo:block text-align="end" background-color="yellow">
+            <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-ending-within-page"/>
+          </fo:block>
+        </fo:static-content>
+        <fo:flow flow-name="xsl-region-body">
+          <fo:table table-layout="fixed" width="100%">
+            <fo:table-column number-columns-repeated="2"/>
+            <fo:table-body>
+              <fo:table-row>
+                <fo:table-cell>
+                  <fo:marker marker-class-name="test">
+                    <fo:table table-layout="fixed" width="100%">
+                      <fo:table-column number-columns-repeated="2"/>
+                      <fo:table-body>
+                        <fo:table-row>
+                          <fo:table-cell>
+                            <fo:block>Subtotal</fo:block>
+                          </fo:table-cell>
+                          <fo:table-cell text-align="end">
+                            <fo:block>29.95</fo:block>
+                          </fo:table-cell>
+                        </fo:table-row>
+                      </fo:table-body>
+                    </fo:table>
+                  </fo:marker>
+                  <fo:block>MemoryStick 32MB</fo:block>
+                </fo:table-cell>
+                <fo:table-cell text-align="end">
+                  <fo:block>29.95</fo:block>
+                </fo:table-cell>
+              </fo:table-row>
+              <fo:table-row>
+                <fo:table-cell>
+                  <fo:marker marker-class-name="test">
+                    <fo:table table-layout="fixed" width="100%">
+                      <fo:table-column number-columns-repeated="2"/>
+                      <fo:table-body>
+                        <fo:table-row>
+                          <fo:table-cell>
+                            <fo:block>Subtotal</fo:block>
+                          </fo:table-cell>
+                          <fo:table-cell text-align="end">
+                            <fo:block>49.95</fo:block>
+                          </fo:table-cell>
+                        </fo:table-row>
+                      </fo:table-body>
+                    </fo:table>
+                  </fo:marker>
+                  <fo:block>Geek-Tool</fo:block>
+                </fo:table-cell>
+                <fo:table-cell text-align="end">
+                  <fo:block>20.00</fo:block>
+                </fo:table-cell>
+              </fo:table-row>
+            </fo:table-body>
+          </fo:table>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <!-- TODO Add reasonable checks when the NPE is fixed -->
+    <eval expected="1" xpath="count(//pageViewport)"/>
+  </checks>
+</testcase>

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

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