diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-10-07 11:56:05 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-10-07 11:56:05 +0000 |
commit | 815d8293f8433b0851d12bd953d6f1c52324c2af (patch) | |
tree | bd0242671370bb6363ab9022f21908c8571f90f7 /test/layoutengine | |
parent | 9cfd6d4533ee60583faabcbe1a9fcd26cdc18e31 (diff) | |
download | xmlgraphics-fop-815d8293f8433b0851d12bd953d6f1c52324c2af.tar.gz xmlgraphics-fop-815d8293f8433b0851d12bd953d6f1c52324c2af.zip |
Test case for wrap-option on fo:block.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@307092 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/layoutengine')
-rw-r--r-- | test/layoutengine/testcases/block_wrap-option.xml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/test/layoutengine/testcases/block_wrap-option.xml b/test/layoutengine/testcases/block_wrap-option.xml new file mode 100644 index 000000000..40e64372f --- /dev/null +++ b/test/layoutengine/testcases/block_wrap-option.xml @@ -0,0 +1,57 @@ +<?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$ -->
+<testcase>
+ <info>
+ <p>
+ This test checks the wrap-option property on fo:block.
+ </p>
+ </info>
+ <fo>
+ <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="simple" page-height="6cm" page-width="21cm">
+ <fo:region-body/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="simple">
+ <fo:flow flow-name="xsl-region-body">
+ <fo:block-container width="5cm" background-color="lightgray">
+ <fo:block background-color="yellow">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas et ligula. Suspendisse faucibus. Donec porta risus vitae turpis.</fo:block>
+ <fo:block background-color="orange" wrap-option="no-wrap">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas et ligula. Suspendisse faucibus. Donec porta risus vitae turpis.</fo:block>
+ </fo:block-container>
+ </fo:flow>
+ </fo:page-sequence>
+ </fo:root>
+ </fo>
+ <checks>
+ <element-list category="breaker">
+ <box w="14400"/> <!-- first block, first line -->
+ <box w="14400"/>
+ <penalty w="0" p="0"/>
+ <box w="14400"/>
+ <penalty w="0" p="0"/>
+ <box w="14400"/>
+ <penalty w="0" p="0"/>
+ <box w="14400"/>
+ <box w="14400"/> <!-- first block, last line -->
+ <penalty w="0" p="0"/>
+ <box w="14400"/> <!-- second block, same content, not broken -->
+ <skip>3</skip>
+ </element-list>
+ </checks>
+</testcase>
|