diff options
author | Luca Furini <lfurini@apache.org> | 2005-08-26 11:33:31 +0000 |
---|---|---|
committer | Luca Furini <lfurini@apache.org> | 2005-08-26 11:33:31 +0000 |
commit | c1ce6e8a1d3b01ccbcced22ad20d34cbde8d9b96 (patch) | |
tree | c2435587d3653275f6cc1b3bb11ae0dac24b2aed | |
parent | 586a12e3601b7fb6dfe3cc635bf5288c47079c50 (diff) | |
download | xmlgraphics-fop-c1ce6e8a1d3b01ccbcced22ad20d34cbde8d9b96.tar.gz xmlgraphics-fop-c1ce6e8a1d3b01ccbcced22ad20d34cbde8d9b96.zip |
Testcase showing a page-number whose ipd is not correctly set
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240206 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | test/layoutengine/disabled-testcases.txt | 3 | ||||
-rw-r--r-- | test/layoutengine/testcases/page-number3.xml | 53 |
2 files changed, 55 insertions, 1 deletions
diff --git a/test/layoutengine/disabled-testcases.txt b/test/layoutengine/disabled-testcases.txt index a9c9bc52b..937ee73dd 100644 --- a/test/layoutengine/disabled-testcases.txt +++ b/test/layoutengine/disabled-testcases.txt @@ -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 index 000000000..d9b7d946f --- /dev/null +++ b/test/layoutengine/testcases/page-number3.xml @@ -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: -><fo:page-number color="red"/><-</fo:block>
+ <fo:block>page: -><fo:page-number color="red"/><-</fo:block>
+ <fo:block>page: -><fo:page-number color="red"/><-</fo:block>
+ <fo:block>page: -><fo:page-number color="red"/><-</fo:block>
+ <fo:block>page: -><fo:page-number color="red"/><-</fo:block>
+ <fo:block>page: -><fo:page-number color="red"/><-</fo:block>
+ <fo:block>page: -><fo:page-number color="red"/><-</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>
|