aboutsummaryrefslogtreecommitdiffstats
path: root/test/layoutengine
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2009-06-05 08:43:10 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2009-06-05 08:43:10 +0000
commitbbe544cf9e37bd2df99d88181d0549a6b30c4981 (patch)
tree2d19c2491a4e4b793f7a15d7e3ff37326e743016 /test/layoutengine
parent389e068ad99c5759fbfa65e524a714b0a06c29a0 (diff)
downloadxmlgraphics-fop-bbe544cf9e37bd2df99d88181d0549a6b30c4981.tar.gz
xmlgraphics-fop-bbe544cf9e37bd2df99d88181d0549a6b30c4981.zip
Bugzilla 46960: Previously retrieved marker not cleared when the subsequently retrieved marker was empty.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@781944 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/layoutengine')
-rw-r--r--test/layoutengine/standard-testcases/markers_empty_bug46960.xml54
1 files changed, 54 insertions, 0 deletions
diff --git a/test/layoutengine/standard-testcases/markers_empty_bug46960.xml b/test/layoutengine/standard-testcases/markers_empty_bug46960.xml
new file mode 100644
index 000000000..a959517d1
--- /dev/null
+++ b/test/layoutengine/standard-testcases/markers_empty_bug46960.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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 for bug 46960: retrieve-markers not cleared if a subsequent
+ retrieved marker is empty.
+ </p>
+ </info>
+ <fo>
+ <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="a4" page-width="210mm" page-height="297mm" margin="5mm">
+ <fo:region-body margin-top="2cm"/>
+ <fo:region-before extent="2cm" region-name="header"/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="a4">
+ <fo:static-content flow-name="header">
+ <fo:block><fo:retrieve-marker id="rm-cont-1" retrieve-class-name="Continued" retrieve-boundary="document" retrieve-position="first-starting-within-page"/></fo:block>
+ </fo:static-content>
+ <fo:flow flow-name="xsl-region-body">
+ <fo:block><fo:marker marker-class-name="Continued"/>First Page</fo:block>
+ <fo:block break-before="page"><fo:marker marker-class-name="Continued">Continued</fo:marker>Second Page</fo:block>
+ <fo:block break-before="page"><fo:marker marker-class-name="Continued"/>Third Page</fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+ </fo:root>
+ </fo>
+ <checks>
+ <!-- first retrieved marker is empty -->
+ <eval expected="0" xpath="(//page)[1]//regionBefore/block/@bpd" />
+ <!-- second marker is "Continued" -->
+ <eval expected="Continued" xpath="(//page)[2]//regionBefore/block/lineArea/text/word" />
+ <!-- third marker should be empty again -->
+ <eval expected="0" xpath="(//page)[3]//regionBefore/block/@bpd" />
+ </checks>
+</testcase>