aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorManuel Mall <manuel@apache.org>2007-01-11 10:28:57 +0000
committerManuel Mall <manuel@apache.org>2007-01-11 10:28:57 +0000
commitedc6a56ccdef0f7edc74c52dc542697abeb12a02 (patch)
treee82b97dd6185b0c840e956c6fea3bf2d44afd4b5 /test
parent914dff1e4dc414372643992b1a6ad73b6257a726 (diff)
downloadxmlgraphics-fop-edc6a56ccdef0f7edc74c52dc542697abeb12a02.tar.gz
xmlgraphics-fop-edc6a56ccdef0f7edc74c52dc542697abeb12a02.zip
Fix for new linebreaking in combination with hyphenation not correctly breaking when explicit hyphen present
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@495175 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rwxr-xr-xtest/layoutengine/hyphenation-testcases/block_uax14_linebreaking_hyph.xml44
1 files changed, 44 insertions, 0 deletions
diff --git a/test/layoutengine/hyphenation-testcases/block_uax14_linebreaking_hyph.xml b/test/layoutengine/hyphenation-testcases/block_uax14_linebreaking_hyph.xml
new file mode 100755
index 000000000..e5bd5841c
--- /dev/null
+++ b/test/layoutengine/hyphenation-testcases/block_uax14_linebreaking_hyph.xml
@@ -0,0 +1,44 @@
+<?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>
+ This test checks some of the UAX#14 breaking rules under hyphenation.
+ </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="normal"
+ page-width="20mm" page-height="5in">
+ <fo:region-body/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="normal" language="de" hyphenate="true">
+ <fo:flow flow-name="xsl-region-body" font-size="20pt">
+ <fo:block>
+ Aggregierte Ausfallzeit IT-Komponente
+ </fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+ </fo:root>
+ </fo>
+ <checks>
+ <eval expected="9" xpath="count(//flow/block/lineArea)"/>
+ </checks>
+</testcase>