xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lfur...@apache.org
Subject svn commit: r240206 - in /xmlgraphics/fop/trunk/test/layoutengine: disabled-testcases.txt testcases/page-number3.xml
Date Fri, 26 Aug 2005 11:33:44 GMT
Author: lfurini
Date: Fri Aug 26 04:33:31 2005
New Revision: 240206

URL: http://svn.apache.org/viewcvs?rev=240206&view=rev
Log:
Testcase showing a page-number whose ipd is not correctly set

Added:
    xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number3.xml
Modified:
    xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.txt

Modified: xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.txt
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.txt?rev=240206&r1=240205&r2=240206&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.txt (original)
+++ xmlgraphics/fop/trunk/test/layoutengine/disabled-testcases.txt Fri Aug 26 04:33:31 2005
@@ -8,10 +8,11 @@
 list4a.xml
 multi-column3.xml
 normal-breaking4.xml
+page-number3.xml
 page-number-citation2.xml
 page-number-citation3.xml
 table-border-collapse1.xml
 table-border-collapse2.xml
 table-border-separate1.xml
 table-column4.xml
-table-fixed2.xml
\ No newline at end of file
+table-fixed2.xml

Added: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number3.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number3.xml?rev=240206&view=auto
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number3.xml (added)
+++ xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number3.xml Fri Aug 26 04:33:31
2005
@@ -0,0 +1,53 @@
+<?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: page-number3.xml 198733 2005-06-09 14:20:45Z jeremias $ -->
+<testcase>
+  <info>
+    <p>
+      This test checks do:page-number.
+    </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="master1" page-width="5in" page-height="1in">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="master1" white-space-collapse="true" initial-page-number="9">
+        <fo:flow flow-name="xsl-region-body">
+          <fo:block><fo:inline>9</fo:inline> <fo:inline>10</fo:inline></fo:block>
+          <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>
+          <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>
+          <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>
+          <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>
+          <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>
+          <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>
+          <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <eval expected="9" xpath="//pageViewport[@nr=9]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea[1]/text[2]"/>
+    <eval expected="6672" xpath="//pageViewport[@nr=9]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea[1]/text[2]/@ipd"/>
+
+    <eval expected="10" xpath="//pageViewport[@nr=10]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea[1]/text[2]"/>
+    <eval expected="13344" xpath="//pageViewport[@nr=10]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea[1]/text[2]/@ipd"/>
+
+  </checks>
+</testcase>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message