]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Testcase showing a page-number whose ipd is not correctly set
authorLuca Furini <lfurini@apache.org>
Fri, 26 Aug 2005 11:33:31 +0000 (11:33 +0000)
committerLuca Furini <lfurini@apache.org>
Fri, 26 Aug 2005 11:33:31 +0000 (11:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240206 13f79535-47bb-0310-9956-ffa450edef68

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

index a9c9bc52be644e49bb56490723e34041010cb786..937ee73dd883ecf5864f8130a6333dbef0ce1b08 100644 (file)
@@ -8,10 +8,11 @@ keep-with-previous5.xml
 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
diff --git a/test/layoutengine/testcases/page-number3.xml b/test/layoutengine/testcases/page-number3.xml
new file mode 100644 (file)
index 0000000..d9b7d94
--- /dev/null
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+  Copyright 2005 The Apache Software Foundation\r
+\r
+  Licensed under the Apache License, Version 2.0 (the "License");\r
+  you may not use this file except in compliance with the License.\r
+  You may obtain a copy of the License at\r
+\r
+       http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+  Unless required by applicable law or agreed to in writing, software\r
+  distributed under the License is distributed on an "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+  See the License for the specific language governing permissions and\r
+  limitations under the License.\r
+-->\r
+<!-- $Id: page-number3.xml 198733 2005-06-09 14:20:45Z jeremias $ -->\r
+<testcase>\r
+  <info>\r
+    <p>\r
+      This test checks do:page-number.\r
+    </p>\r
+  </info>\r
+  <fo>\r
+    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">\r
+      <fo:layout-master-set>\r
+        <fo:simple-page-master master-name="master1" page-width="5in" page-height="1in">\r
+          <fo:region-body/>\r
+        </fo:simple-page-master>\r
+      </fo:layout-master-set>\r
+      <fo:page-sequence master-reference="master1" white-space-collapse="true" initial-page-number="9">\r
+        <fo:flow flow-name="xsl-region-body">\r
+          <fo:block><fo:inline>9</fo:inline> <fo:inline>10</fo:inline></fo:block>\r
+          <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>\r
+          <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>\r
+          <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>\r
+          <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>\r
+          <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>\r
+          <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>\r
+          <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>\r
+        </fo:flow>\r
+      </fo:page-sequence>\r
+    </fo:root>\r
+  </fo>\r
+  <checks>\r
+    <eval expected="9" xpath="//pageViewport[@nr=9]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea[1]/text[2]"/>\r
+    <eval expected="6672" xpath="//pageViewport[@nr=9]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea[1]/text[2]/@ipd"/>\r
+\r
+    <eval expected="10" xpath="//pageViewport[@nr=10]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea[1]/text[2]"/>\r
+    <eval expected="13344" xpath="//pageViewport[@nr=10]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea[1]/text[2]/@ipd"/>\r
+\r
+  </checks>\r
+</testcase>\r