xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spepp...@apache.org
Subject svn commit: r1136146 [3/3] - in /xmlgraphics/fop/branches/Temp_ComplexScripts: src/codegen/complexscripts/ src/java/org/apache/fop/fonts/ test/java/org/apache/fop/complexscripts/arabic/ test/java/org/apache/fop/complexscripts/fonts/ test/java/org/apach...
Date Wed, 15 Jun 2011 18:47:49 GMT
Added: xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/list-block_writing-mode_rl.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/list-block_writing-mode_rl.xml?rev=1136146&view=auto
==============================================================================
--- xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/list-block_writing-mode_rl.xml
(added)
+++ xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/list-block_writing-mode_rl.xml
Wed Jun 15 18:47:47 2011
@@ -0,0 +1,207 @@
+<?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 lists in a RTL WM context.
+    </p>
+  </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="5in" page-height="5in">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="normal" white-space-collapse="true" writing-mode="rl">
+        <fo:flow flow-name="xsl-region-body">
+          <fo:list-block>
+            <fo:list-item>
+              <fo:list-item-label>
+                <fo:block background-color="lightgray">label</fo:block>
+              </fo:list-item-label>
+              <fo:list-item-body>
+                <fo:block>value</fo:block>
+              </fo:list-item-body>
+            </fo:list-item>
+            <fo:list-item>
+              <fo:list-item-label start-indent="10pt" end-indent="label-end()">
+                <fo:block background-color="lightgray">label</fo:block>
+              </fo:list-item-label>
+              <fo:list-item-body start-indent="100pt">
+                <fo:block border-left="solid 0.1pt">value</fo:block>
+              </fo:list-item-body>
+            </fo:list-item>
+            <fo:list-item>
+              <fo:list-item-label end-indent="label-end()">
+                <fo:block background-color="lightgray">label</fo:block>
+              </fo:list-item-label>
+              <fo:list-item-body start-indent="body-start()">
+                <fo:block border-left="solid 0.1pt">value</fo:block>
+              </fo:list-item-body>
+            </fo:list-item>
+          </fo:list-block>
+          <fo:list-block provisional-distance-between-starts="50pt" provisional-label-separation="10pt">
+            <fo:list-item margin-right="10pt">
+              <fo:list-item-label end-indent="label-end()">
+                <fo:block text-align="end" background-color="lightgray">label</fo:block>
+              </fo:list-item-label>
+              <fo:list-item-body start-indent="body-start()">
+                <fo:block border-left="solid 0.1pt">value</fo:block>
+              </fo:list-item-body>
+            </fo:list-item>
+          </fo:list-block>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <!-- first list-block -->
+    <eval expected="360000" xpath="//flow/block[1]/@ipd"/>
+    <eval expected="43200" xpath="//flow/block[1]/@bpd"/>
+    <!-- first list-item -->
+    <eval expected="360000" xpath="//flow/block[1]/block[1]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[1]/block[1]/@bpd"/>
+    <!-- label of first list-item -->
+    <eval expected="360000" xpath="//flow/block[1]/block[1]/block[1]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@bpd"/>
+    <!-- content of label of first list-item -->
+    <eval expected="360000" xpath="//flow/block[1]/block[1]/block[1]/block[1]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/block[1]/@bpd"/>
+    <eval expected="1" xpath="//flow/block[1]/block[1]/block[1]/block[1]/@level"/>
+    <true xpath="not(//flow/block[1]/block[1]/block[1]/block[1]/@start-indent)"/>
+    <true xpath="not(//flow/block[1]/block[1]/block[1]/block[1]/@end-indent)"/>
+    <eval expected="360000" xpath="//flow/block[1]/block[1]/block[1]/block[1]/lineArea[1]/@ipd"/>
+    <eval expected="11100" xpath="//flow/block[1]/block[1]/block[1]/block[1]/lineArea[1]/@bpd"/>
+    <true xpath="not(//flow/block[1]/block[1]/block[1]/block[1]/lineArea[1]/@start-indent)"/>
+    <eval expected="334656" xpath="//flow/block[1]/block[1]/block[1]/block[1]/lineArea[1]/@end-indent"/>
+    <eval expected="1" xpath="//flow/block[1]/block[1]/block[1]/block[1]/lineArea[1]/@level"/>
+    <!-- body of first list-item -->
+    <eval expected="360000" xpath="//flow/block[1]/block[1]/block[2]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[1]/block[1]/block[2]/@bpd"/>
+    <!-- content of body of first list-item -->
+    <eval expected="360000" xpath="//flow/block[1]/block[1]/block[2]/block[1]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[1]/block[1]/block[2]/block[1]/@bpd"/>
+    <eval expected="1" xpath="//flow/block[1]/block[1]/block[2]/block[1]/@level"/>
+    <true xpath="not(//flow/block[1]/block[1]/block[1]/block[2]/@start-indent)"/>
+    <true xpath="not(//flow/block[1]/block[1]/block[1]/block[2]/@end-indent)"/>
+    <eval expected="360000" xpath="//flow/block[1]/block[1]/block[2]/block[1]/lineArea[1]/@ipd"/>
+    <eval expected="11100" xpath="//flow/block[1]/block[1]/block[2]/block[1]/lineArea[1]/@bpd"/>
+    <true xpath="not(//flow/block[1]/block[1]/block[1]/block[2]/lineArea[1]/@start-indent)"/>
+    <eval expected="331320" xpath="//flow/block[1]/block[1]/block[2]/block[1]/lineArea[1]/@end-indent"/>
+    <eval expected="1" xpath="//flow/block[1]/block[1]/block[2]/block[1]/lineArea[1]/@level"/>
+    <!-- second list-item -->
+    <eval expected="360000" xpath="//flow/block[1]/block[2]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[1]/block[2]/@bpd"/>
+    <!-- label of second list-item -->
+    <eval expected="360000" xpath="//flow/block[1]/block[2]/block[1]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[1]/block[2]/block[1]/@bpd"/>
+    <!-- content of label of second list-item -->
+    <eval expected="8000" xpath="//flow/block[1]/block[2]/block[1]/block[1]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[1]/block[2]/block[1]/block[1]/@bpd"/>
+    <eval expected="1" xpath="//flow/block[1]/block[2]/block[1]/block[1]/@level"/>
+    <eval expected="10000" xpath="//flow/block[1]/block[2]/block[1]/block[1]/@start-indent"/>
+    <eval expected="342000" xpath="//flow/block[1]/block[2]/block[1]/block[1]/@end-indent"/>
+    <eval expected="8000" xpath="//flow/block[1]/block[2]/block[1]/block[1]/lineArea[1]/@ipd"/>
+    <eval expected="11100" xpath="//flow/block[1]/block[2]/block[1]/block[1]/lineArea[1]/@bpd"/>
+    <true xpath="not(//flow/block[1]/block[2]/block[1]/block[1]/lineArea[1]/@start-indent)"/>
+    <true xpath="not(//flow/block[1]/block[2]/block[1]/block[1]/lineArea[1]/@end-indent)"/>
+    <eval expected="1" xpath="//flow/block[1]/block[2]/block[1]/block[1]/lineArea[1]/@level"/>
+    <!-- body of second list-item -->
+    <eval expected="360000" xpath="//flow/block[1]/block[2]/block[2]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[1]/block[2]/block[2]/@bpd"/>
+    <!-- content of body of second list-item -->
+    <eval expected="260000" xpath="//flow/block[1]/block[2]/block[2]/block[1]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[1]/block[2]/block[2]/block[1]/@bpd"/>
+    <eval expected="1" xpath="//flow/block[1]/block[2]/block[2]/block[1]/@level"/>
+    <eval expected="100000" xpath="//flow/block[1]/block[2]/block[2]/block[1]/@start-indent"/>
+    <true xpath="not(//flow/block[1]/block[2]/block[1]/block[2]/@end-indent)"/>
+    <eval expected="260000" xpath="//flow/block[1]/block[2]/block[2]/block[1]/lineArea[1]/@ipd"/>
+    <eval expected="11100" xpath="//flow/block[1]/block[2]/block[2]/block[1]/lineArea[1]/@bpd"/>
+    <true xpath="not(//flow/block[1]/block[2]/block[1]/block[2]/lineArea[1]/@start-indent)"/>
+    <eval expected="231320" xpath="//flow/block[1]/block[2]/block[2]/block[1]/lineArea[1]/@end-indent"/>
+    <eval expected="1" xpath="//flow/block[1]/block[2]/block[2]/block[1]/lineArea[1]/@level"/>
+    <!-- third list-item -->
+    <eval expected="360000" xpath="//flow/block[1]/block[3]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[1]/block[3]/@bpd"/>
+    <!-- label of third list-item -->
+    <eval expected="360000" xpath="//flow/block[1]/block[3]/block[1]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[1]/block[3]/block[1]/@bpd"/>
+    <!-- content of label of third list-item -->
+    <eval expected="18000" xpath="//flow/block[1]/block[3]/block[1]/block[1]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[1]/block[3]/block[1]/block[1]/@bpd"/>
+    <eval expected="1" xpath="//flow/block[1]/block[3]/block[1]/block[1]/@level"/>
+    <true xpath="not(//flow/block[1]/block[3]/block[1]/block[1]/@start-indent)"/>
+    <eval expected="342000" xpath="//flow/block[1]/block[3]/block[1]/block[1]/@end-indent"/>
+    <eval expected="18000" xpath="//flow/block[1]/block[3]/block[1]/block[1]/lineArea[1]/@ipd"/>
+    <eval expected="11100" xpath="//flow/block[1]/block[3]/block[1]/block[1]/lineArea[1]/@bpd"/>
+    <true xpath="not(//flow/block[1]/block[3]/block[1]/block[1]/lineArea[1]/@start-indent)"/>
+    <true xpath="not(//flow/block[1]/block[3]/block[1]/block[1]/lineArea[1]/@end-indent)"/>
+    <eval expected="1" xpath="//flow/block[1]/block[3]/block[1]/block[1]/lineArea[1]/@level"/>
+    <!-- body of third list-item -->
+    <eval expected="360000" xpath="//flow/block[1]/block[3]/block[2]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[1]/block[3]/block[2]/@bpd"/>
+    <!-- content of body of third list-item -->
+    <eval expected="336000" xpath="//flow/block[1]/block[3]/block[2]/block[1]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[1]/block[3]/block[2]/block[1]/@bpd"/>
+    <eval expected="1" xpath="//flow/block[1]/block[3]/block[2]/block[1]/@level"/>
+    <eval expected="24000" xpath="//flow/block[1]/block[3]/block[2]/block[1]/@start-indent"/>
+    <true xpath="not(//flow/block[1]/block[3]/block[1]/block[2]/@end-indent)"/>
+    <eval expected="336000" xpath="//flow/block[1]/block[3]/block[2]/block[1]/lineArea[1]/@ipd"/>
+    <eval expected="11100" xpath="//flow/block[1]/block[3]/block[2]/block[1]/lineArea[1]/@bpd"/>
+    <true xpath="not(//flow/block[1]/block[3]/block[1]/block[2]/lineArea[1]/@start-indent)"/>
+    <eval expected="307320" xpath="//flow/block[1]/block[3]/block[2]/block[1]/lineArea[1]/@end-indent"/>
+    <eval expected="1" xpath="//flow/block[1]/block[3]/block[2]/block[1]/lineArea[1]/@level"/>
+    <!-- second list-block -->
+    <eval expected="360000" xpath="//flow/block[2]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[2]/@bpd"/>
+    <!-- first list-item -->
+    <eval expected="350000" xpath="//flow/block[2]/block[1]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[2]/block[1]/@bpd"/>
+    <eval expected="10000" xpath="//flow/block[2]/block[1]/@start-indent"/>
+    <!-- label of first list-item -->
+    <eval expected="350000" xpath="//flow/block[2]/block[1]/block[1]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[2]/block[1]/block[1]/@bpd"/>
+    <!-- content of label of first list-item -->
+    <eval expected="40000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@bpd"/>
+    <eval expected="1" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@level"/>
+    <eval expected="10000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@start-indent"/>
+    <eval expected="310000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@end-indent"/>
+    <eval expected="40000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/lineArea[1]/@ipd"/>
+    <eval expected="11100" xpath="//flow/block[2]/block[1]/block[1]/block[1]/lineArea[1]/@bpd"/>
+    <eval expected="14656" xpath="//flow/block[2]/block[1]/block[1]/block[1]/lineArea[1]/@start-indent"/>
+    <true xpath="not(//flow/block[2]/block[1]/block[1]/block[1]/lineArea[1]/@end-indent)"/>
+    <eval expected="1" xpath="//flow/block[2]/block[1]/block[1]/block[1]/lineArea[1]/@level"/>
+    <!-- body of first list-item -->
+    <eval expected="350000" xpath="//flow/block[2]/block[1]/block[2]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[2]/block[1]/block[2]/@bpd"/>
+    <!-- content of body of first list-item -->
+    <eval expected="300000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@bpd"/>
+    <eval expected="1" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@level"/>
+    <eval expected="60000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@start-indent"/>
+    <true xpath="not(//flow/block[2]/block[1]/block[2]/block[1]/@end-indent)"/>
+    <eval expected="300000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/lineArea[1]/@ipd"/>
+    <eval expected="11100" xpath="//flow/block[2]/block[1]/block[2]/block[1]/lineArea[1]/@bpd"/>
+    <true xpath="not(//flow/block[2]/block[1]/block[2]/block[1]/lineArea[1]/@start-indent)"/>
+    <eval expected="271320" xpath="//flow/block[2]/block[1]/block[2]/block[1]/lineArea[1]/@end-indent"/>
+    <eval expected="1" xpath="//flow/block[2]/block[1]/block[2]/block[1]/lineArea[1]/@level"/>
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/list-block_writing-mode_rl.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/list-block_writing-mode_rl.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/page-number-citation_writing-mode_rl.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/page-number-citation_writing-mode_rl.xml?rev=1136146&view=auto
==============================================================================
--- xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/page-number-citation_writing-mode_rl.xml
(added)
+++ xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/page-number-citation_writing-mode_rl.xml
Wed Jun 15 18:47:47 2011
@@ -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>
+      This test checks fo:page-number-citation in a RTL writing-mode context.
+    </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="297mm" page-width="210mm">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="simple" writing-mode="rl">
+        <fo:flow flow-name="xsl-region-body">
+          <fo:block>Page <fo:bidi-override unicode-bidi="bidi-override" direction="ltr"><fo:page-number-citation
ref-id="test-id"/></fo:bidi-override></fo:block>
+        </fo:flow>
+      </fo:page-sequence>
+      <fo:page-sequence master-reference="simple" writing-mode="rl">
+        <fo:flow flow-name="xsl-region-body">
+            <fo:block id="test-id">Page 2</fo:block>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <eval expected="2" xpath="count(//pageSequence)"/>
+    <eval expected="1" xpath="count(//pageSequence[1]/pageViewport)"/>
+    <eval expected="1" xpath="count(//pageSequence[2]/pageViewport)"/>
+    <eval expected="Page " xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block/lineArea/text"/>
+    <eval expected="2" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block/lineArea/inlineparent/text"/>
+    <eval expected="Page 2" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block/lineArea/text"/>
+    <eval expected="1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block/lineArea/@level"/>
+    <eval expected="595275" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block/lineArea/@ipd"/>
+    <eval expected="557247" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block/lineArea/@end-indent"/>
+    <true xpath="not(boolean(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block/lineArea/@start-indent))"/>
+    <eval expected="2" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block/lineArea/text/word/@level"/>
+    <eval expected="2" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block/lineArea/inlineparent/text/word/@level"/>
+    <eval expected="1" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block/lineArea/@level"/>
+    <eval expected="595275" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block/lineArea/@ipd"/>
+    <eval expected="557247" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block/lineArea/@end-indent"/>
+    <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block/lineArea/@start-indent))"/>
+    <eval expected="2" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block/lineArea/text/word/@level"/>
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/page-number-citation_writing-mode_rl.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/page-number-citation_writing-mode_rl.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/table-column_column-progression-lr.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/table-column_column-progression-lr.xml?rev=1136146&view=auto
==============================================================================
--- xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/table-column_column-progression-lr.xml
(added)
+++ xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/table-column_column-progression-lr.xml
Wed Jun 15 18:47:47 2011
@@ -0,0 +1,82 @@
+<?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 table column progression with left-to-right writing mode. The first
column
+      should be to the left of the second column; the second column should be to the left
of the
+      third column. The columns should be colored red, yellow, orange from left to right.
+    </p>
+  </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="5in" page-height="5in"
margin="0.5in">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="normal" writing-mode="lr">
+        <fo:flow flow-name="xsl-region-body">
+          <fo:table table-layout="fixed" width="100%">
+            <fo:table-column column-width="1in" background-color="red"/>
+            <fo:table-column column-width="1in" background-color="yellow"/>
+            <fo:table-column column-width="2in" background-color="orange"/>
+            <fo:table-body>
+              <fo:table-row>
+                <fo:table-cell>
+                  <fo:block>cell1</fo:block>
+                </fo:table-cell>
+                <fo:table-cell>
+                  <fo:block>cell2</fo:block>
+                </fo:table-cell>
+                <fo:table-cell>
+                  <fo:block>cell3</fo:block>
+                </fo:table-cell>
+              </fo:table-row>
+            </fo:table-body>
+          </fo:table>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <!-- cell 1 background -->
+    <eval expected="#ff0000" xpath="//flow/block[1]/block[1]/@bkg-color"/>
+    <!-- cell 1 -->
+    <eval expected="cell1" xpath="//flow/block[1]/block[2]/block[1]/lineArea/text"/>
+    <eval expected="72000" xpath="//flow/block[1]/block[2]/@ipd"/>
+    <true xpath="not(boolean(//flow/block[1]/block[2]/@left-offset))"/>
+    <!-- cell 2 background -->
+    <eval expected="#ffff00" xpath="//flow/block[1]/block[3]/@bkg-color"/>
+    <!-- cell 2 -->
+    <eval expected="cell2" xpath="//flow/block[1]/block[4]/block[1]/lineArea/text"/>
+    <eval expected="72000" xpath="//flow/block[1]/block[4]/@ipd"/>
+    <eval expected="72000" xpath="//flow/block[1]/block[4]/@left-offset"/>
+    <!-- cell 3 background -->
+    <eval expected="#ffa500" xpath="//flow/block[1]/block[5]/@bkg-color"/>
+    <!-- cell 3 -->
+    <eval expected="cell3" xpath="//flow/block[1]/block[6]/block[1]/lineArea/text"/>
+    <eval expected="144000" xpath="//flow/block[1]/block[6]/@ipd"/>
+    <eval expected="144000" xpath="//flow/block[1]/block[6]/@left-offset"/>
+    <!-- left-to-right offset invariant - cell 2 to the right of cell 1 -->
+    <true xpath="//flow/block[1]/block[4]/@left-offset &gt; 0"/>
+    <!-- left-to-right offset invariant - cell 3 to the right of cell 2 -->
+    <true xpath="//flow/block[1]/block[4]/@left-offset &lt; //flow/block[1]/block[6]/@left-offset"/>
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/table-column_column-progression-lr.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/table-column_column-progression-lr.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/table-column_column-progression-rl.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/table-column_column-progression-rl.xml?rev=1136146&view=auto
==============================================================================
--- xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/table-column_column-progression-rl.xml
(added)
+++ xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/table-column_column-progression-rl.xml
Wed Jun 15 18:47:47 2011
@@ -0,0 +1,82 @@
+<?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 table column progression with right-to-left writing mode. The first
column
+      should be to the right of the second column; the second column should be to the right
of the
+      third column. The columns should be colored red, yellow, orange from right to left.
+    </p>
+  </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="5in" page-height="5in"
margin="0.5in">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="normal" writing-mode="rl">
+        <fo:flow flow-name="xsl-region-body">
+          <fo:table table-layout="fixed" width="100%">
+            <fo:table-column column-width="1in" background-color="red"/>
+            <fo:table-column column-width="1in" background-color="yellow"/>
+            <fo:table-column column-width="2in" background-color="orange"/>
+            <fo:table-body>
+              <fo:table-row>
+                <fo:table-cell>
+                  <fo:block>cell1</fo:block>
+                </fo:table-cell>
+                <fo:table-cell>
+                  <fo:block>cell2</fo:block>
+                </fo:table-cell>
+                <fo:table-cell>
+                  <fo:block>cell3</fo:block>
+                </fo:table-cell>
+              </fo:table-row>
+            </fo:table-body>
+          </fo:table>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <!-- cell 1 background -->
+    <eval expected="#ff0000" xpath="//flow/block[1]/block[1]/@bkg-color"/>
+    <!-- cell 1 -->
+    <eval expected="cell1" xpath="//flow/block[1]/block[2]/block[1]/lineArea/text"/>
+    <eval expected="72000" xpath="//flow/block[1]/block[2]/@ipd"/>
+    <eval expected="216000" xpath="//flow/block[1]/block[2]/@left-offset"/>
+    <!-- cell 2 background -->
+    <eval expected="#ffff00" xpath="//flow/block[1]/block[3]/@bkg-color"/>
+    <!-- cell 2 -->
+    <eval expected="cell2" xpath="//flow/block[1]/block[4]/block[1]/lineArea/text"/>
+    <eval expected="72000" xpath="//flow/block[1]/block[4]/@ipd"/>
+    <eval expected="144000" xpath="//flow/block[1]/block[4]/@left-offset"/>
+    <!-- cell 3 background -->
+    <eval expected="#ffa500" xpath="//flow/block[1]/block[5]/@bkg-color"/>
+    <!-- cell 3 -->
+    <eval expected="cell3" xpath="//flow/block[1]/block[6]/block[1]/lineArea/text"/>
+    <eval expected="144000" xpath="//flow/block[1]/block[6]/@ipd"/>
+    <true xpath="not(boolean(//flow/block[1]/block[6]/@left-offset))"/>
+    <!-- right-to-left offset invariant - cell 2 to the left of cell 1 -->
+    <true xpath="//flow/block[1]/block[4]/@left-offset &lt; //flow/block[1]/block[2]/@left-offset"/>
+    <!-- right-to-left offset invariant - cell 3 to left right of cell 2 -->
+    <true xpath="//flow/block[1]/block[4]/@left-offset &gt; 0"/>
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/table-column_column-progression-rl.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: xmlgraphics/fop/branches/Temp_ComplexScripts/test/layoutengine/standard-testcases/table-column_column-progression-rl.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xmlgraphics/fop/branches/Temp_ComplexScripts/test/resources/complexscripts/arab/ttx/arab-001.ttx
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_ComplexScripts/test/resources/complexscripts/arab/ttx/arab-001.ttx?rev=1136146&view=auto
==============================================================================
--- xmlgraphics/fop/branches/Temp_ComplexScripts/test/resources/complexscripts/arab/ttx/arab-001.ttx
(added)
+++ xmlgraphics/fop/branches/Temp_ComplexScripts/test/resources/complexscripts/arab/ttx/arab-001.ttx
Wed Jun 15 18:47:47 2011
@@ -0,0 +1 @@

[... 2 lines stripped ...]
Added: xmlgraphics/fop/branches/Temp_ComplexScripts/test/resources/complexscripts/arab/ttx/arab-002.ttx
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_ComplexScripts/test/resources/complexscripts/arab/ttx/arab-002.ttx?rev=1136146&view=auto
==============================================================================
--- xmlgraphics/fop/branches/Temp_ComplexScripts/test/resources/complexscripts/arab/ttx/arab-002.ttx
(added)
+++ xmlgraphics/fop/branches/Temp_ComplexScripts/test/resources/complexscripts/arab/ttx/arab-002.ttx
Wed Jun 15 18:47:47 2011
@@ -0,0 +1 @@

[... 2 lines stripped ...]
Added: xmlgraphics/fop/branches/Temp_ComplexScripts/test/resources/complexscripts/arab/ttx/arab-003.ttx
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_ComplexScripts/test/resources/complexscripts/arab/ttx/arab-003.ttx?rev=1136146&view=auto
==============================================================================
--- xmlgraphics/fop/branches/Temp_ComplexScripts/test/resources/complexscripts/arab/ttx/arab-003.ttx
(added)
+++ xmlgraphics/fop/branches/Temp_ComplexScripts/test/resources/complexscripts/arab/ttx/arab-003.ttx
Wed Jun 15 18:47:47 2011
@@ -0,0 +1 @@

[... 2 lines stripped ...]
Added: xmlgraphics/fop/branches/Temp_ComplexScripts/test/resources/complexscripts/arab/ttx/arab-004.ttx
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_ComplexScripts/test/resources/complexscripts/arab/ttx/arab-004.ttx?rev=1136146&view=auto
==============================================================================
--- xmlgraphics/fop/branches/Temp_ComplexScripts/test/resources/complexscripts/arab/ttx/arab-004.ttx
(added)
+++ xmlgraphics/fop/branches/Temp_ComplexScripts/test/resources/complexscripts/arab/ttx/arab-004.ttx
Wed Jun 15 18:47:47 2011
@@ -0,0 +1 @@

[... 2 lines stripped ...]


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message