summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Adams <gadams@apache.org>2014-09-08 22:32:17 +0000
committerGlenn Adams <gadams@apache.org>2014-09-08 22:32:17 +0000
commit849cddb89e37010013bc6897daaba6ff8e93c88c (patch)
treedddfeee951b126dc7ab3e38cda10fa6ab27cc066
parentabd59ee208c33281d7237cd7b592a467eeff454b (diff)
downloadxmlgraphics-fop-849cddb89e37010013bc6897daaba6ff8e93c88c.tar.gz
xmlgraphics-fop-849cddb89e37010013bc6897daaba6ff8e93c88c.zip
FOP-2303: add test for bug fix
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1623596 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--test/layoutengine/standard-testcases/block_bidi_jira2303.xml63
1 files changed, 63 insertions, 0 deletions
diff --git a/test/layoutengine/standard-testcases/block_bidi_jira2303.xml b/test/layoutengine/standard-testcases/block_bidi_jira2303.xml
new file mode 100644
index 000000000..13295917c
--- /dev/null
+++ b/test/layoutengine/standard-testcases/block_bidi_jira2303.xml
@@ -0,0 +1,63 @@
+<?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>
+ Test fix for https://issues.apache.org/jira/browse/FOP-2258.
+ </p>
+ </info>
+ <fo>
+ <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" writing-mode="rl">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="all">
+ <fo:region-body region-name="body" margin="1in"/>
+ </fo:simple-page-master >
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="all">
+ <fo:flow flow-name="body" text-align="start" >
+ <fo:block space-before="20mm">
+ <fo:block space-after="10mm" end-indent="0cm" start-indent="2cm" text-indent="-1cm" border="1px solid red">
+ وقالت الطبيبة ان "حالتها سهلة العلاج في الاحوال العادية. لكننا نفتقد الى الكورتيزون، كما انها بحاجة الى غذاء غني بالبروتينات لكن اهلها غير قادرين على تامين ذلك لها".وقالت الطبيبة ان "حالتها سهلة العلاج في الاحوال العادية. لكننا نفتقد الى الكورتيزون، كما انها بحاجة الى غذاء غني بالبروتينات لكن اهلها غير قادرين على تامين ذلك لها".
+ </fo:block>
+ </fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+ </fo:root>
+ </fo>
+ <checks>
+ <eval expected="394028" xpath="(//lineArea)[1]/@ipd"/>
+ <eval expected="-28346" xpath="(//lineArea)[1]/@start-indent"/>
+ <eval expected="7786" xpath="(//lineArea)[1]/@end-indent"/>
+ <eval expected="394028" xpath="(//lineArea)[2]/@ipd"/>
+ <eval expected="" xpath="(//lineArea)[2]/@start-indent"/>
+ <eval expected="30404" xpath="(//lineArea)[2]/@end-indent"/>
+ <eval expected="394028" xpath="(//lineArea)[3]/@ipd"/>
+ <eval expected="" xpath="(//lineArea)[3]/@start-indent"/>
+ <eval expected="1868" xpath="(//lineArea)[3]/@end-indent"/>
+ <eval expected="394028" xpath="(//lineArea)[4]/@ipd"/>
+ <eval expected="" xpath="(//lineArea)[4]/@start-indent"/>
+ <eval expected="7052" xpath="(//lineArea)[4]/@end-indent"/>
+ <eval expected="394028" xpath="(//lineArea)[5]/@ipd"/>
+ <eval expected="" xpath="(//lineArea)[5]/@start-indent"/>
+ <eval expected="20396" xpath="(//lineArea)[5]/@end-indent"/>
+ <eval expected="394028" xpath="(//lineArea)[6]/@ipd"/>
+ <eval expected="" xpath="(//lineArea)[6]/@start-indent"/>
+ <eval expected="343064" xpath="(//lineArea)[6]/@end-indent"/>
+ </checks>
+</testcase>