diff options
author | Glenn Adams <gadams@apache.org> | 2014-07-06 23:46:18 +0000 |
---|---|---|
committer | Glenn Adams <gadams@apache.org> | 2014-07-06 23:46:18 +0000 |
commit | 6ebc570ad4891b338192c2e2900424c8445efc86 (patch) | |
tree | 12db084b6a5acebab4467eac453f697a29f53752 /test | |
parent | e7015eb126ea5a302045a207e565edde4f239898 (diff) | |
download | xmlgraphics-fop-6ebc570ad4891b338192c2e2900424c8445efc86.tar.gz xmlgraphics-fop-6ebc570ad4891b338192c2e2900424c8445efc86.zip |
FOP 2388: Fix Arabic text left justified on the first cell of a table with writing mode rl-tb.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1608314 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/layoutengine/standard-testcases/table_jira2388.xml | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/test/layoutengine/standard-testcases/table_jira2388.xml b/test/layoutengine/standard-testcases/table_jira2388.xml new file mode 100644 index 000000000..aea8ab5cd --- /dev/null +++ b/test/layoutengine/standard-testcases/table_jira2388.xml @@ -0,0 +1,64 @@ +<?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 is a testcase for jira #2388: when a 2-row table with WM(rl-tb) is contained in a block + with WM(lr-tb), then content from both rows should, by default, use WM(rl-tb) from table. Prior + to fix, the first row was obtaining default WM(lr-tb) from the container block rather than table. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> + <fo:layout-master-set> + <fo:simple-page-master margin="20mm" master-name="letterPage" page-width="210mm" page-height="297mm"> + <fo:region-body region-name="letterPageBody"/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="letterPage"> + <fo:flow flow-name="letterPageBody"> + <fo:block> + <fo:table writing-mode="rl-tb" table-layout="fixed" width="100%"> + <fo:table-column column-width="proportional-column-width(100)" column-number="1"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell> + <fo:block font-family="Arial" font-size="12pt" font-weight="normal">يرحب بكم ستاندرد تشارترد بنك و يتطلع لتقديم خدمات الحسابات المصرفية لكم</fo:block> + </fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell> + <fo:block font-family="Arial" font-size="12pt" font-weight="normal">يرحب بكم ستاندرد تشارترد بنك و يتطلع لتقديم خدمات الحسابات المصرفية لكم</fo:block> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + </fo:block> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <eval expected="2" xpath="count(//lineArea)"/> + <eval expected="1" xpath="(//lineArea)[1]/@level"/> + <eval expected="88800" xpath="(//lineArea)[1]/@end-indent"/> + <eval expected="1" xpath="(//lineArea)[2]/@level"/> + <eval expected="88800" xpath="(//lineArea)[2]/@end-indent"/> + </checks> +</testcase> |