xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sstei...@apache.org
Subject svn commit: r1835125 [3/3] - in /xmlgraphics/fop/branches/Temp_ChangeBars2: fop-core/src/main/java/org/apache/fop/area/ fop-core/src/main/java/org/apache/fop/area/inline/ fop-core/src/main/java/org/apache/fop/fo/ fop-core/src/main/java/org/apache/fop/f...
Date Thu, 05 Jul 2018 11:29:02 GMT
Added: xmlgraphics/fop/branches/Temp_ChangeBars2/fop/test/layoutengine/standard-testcases/change-bar_table.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_ChangeBars2/fop/test/layoutengine/standard-testcases/change-bar_table.xml?rev=1835125&view=auto
==============================================================================
--- xmlgraphics/fop/branches/Temp_ChangeBars2/fop/test/layoutengine/standard-testcases/change-bar_table.xml
(added)
+++ xmlgraphics/fop/branches/Temp_ChangeBars2/fop/test/layoutengine/standard-testcases/change-bar_table.xml
Thu Jul  5 11:29:01 2018
@@ -0,0 +1,147 @@
+<?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:change-bar-* on table elements.</p>
+   </info>
+   <fo>
+      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+         <fo:layout-master-set>
+            <fo:simple-page-master page-height="145mm" page-width="210mm" margin="10mm"
+               master-name="master">
+               <fo:region-body column-count="2" column-gap="10mm"/>
+            </fo:simple-page-master>
+         </fo:layout-master-set>
+         <fo:page-sequence master-reference="master">
+            <fo:flow flow-name="xsl-region-body">
+
+               <fo:table change-bar-style="solid" change-bar-color="red" change-bar-offset="2mm"
+                  change-bar-width="0.3mm">
+                  <fo:table-header>
+                     <fo:change-bar-begin change-bar-class="headerRow" change-bar-offset="0.1mm"
+                        change-bar-color="green"/>
+                     <fo:table-row>
+                        <fo:table-cell id="header-row1-col1">
+                           <fo:block>header-row1-col1</fo:block>
+                        </fo:table-cell>
+                        <fo:table-cell id="header-row1-col2">
+                           <fo:block>header-row1-col2</fo:block>
+                        </fo:table-cell>
+                     </fo:table-row>
+                     <fo:change-bar-end change-bar-class="headerRow"/>
+                     <fo:table-row>
+                        <fo:change-bar-begin change-bar-class="headerCell" change-bar-color="blue"/>
+                        <fo:table-cell id="header-row2-col1">
+                           <fo:block>header-row2-col1</fo:block>
+                        </fo:table-cell>
+                        <fo:change-bar-end change-bar-class="headerCell"/>
+                        <fo:table-cell id="header-row2-col2">
+                           <fo:change-bar-begin change-bar-class="headerCellBlock"
+                              change-bar-offset="1mm"/>
+                           <fo:block>header-row2-col2</fo:block>
+                           <fo:change-bar-end change-bar-class="headerCellBlock"/>
+                        </fo:table-cell>
+                     </fo:table-row>
+                  </fo:table-header>
+                  <fo:change-bar-begin change-bar-class="footer"/>
+                  <fo:table-footer>
+                     <fo:table-row>
+                        <fo:change-bar-begin change-bar-class="footerRow" change-bar-offset="3mm"
+                           change-bar-color="green"/>
+                        <fo:table-cell id="footer-row1-col1">
+                           <fo:block>footer-row1-col1</fo:block>
+                        </fo:table-cell>
+                        <fo:change-bar-end change-bar-class="footerRow"/>
+                        <fo:table-cell id="footer-row1-col2">
+                           <fo:block>footer-row1-col2</fo:block>
+                        </fo:table-cell>
+                     </fo:table-row>
+                     <fo:table-row>
+                        <fo:table-cell id="footer-row2-col1">
+                           <fo:block>footer-row2-col1</fo:block>
+                        </fo:table-cell>
+                        <fo:table-cell id="footer-row2-col2">
+                           <fo:block>footer-row2-col2</fo:block>
+                        </fo:table-cell>
+                     </fo:table-row>
+                  </fo:table-footer>
+                  <fo:change-bar-end change-bar-class="footer"/>
+                  <fo:table-body>
+                     <fo:change-bar-begin change-bar-class="bodyRow"/>
+                     <fo:table-row>
+                        <fo:table-cell id="body-row1-col1">
+                           <fo:block>body-row1-col1</fo:block>
+                        </fo:table-cell>
+                        <fo:table-cell id="body-row1-col2">
+                           <fo:block>body-row1-col2</fo:block>
+                        </fo:table-cell>
+                     </fo:table-row>
+                     <fo:change-bar-end change-bar-class="bodyRow"/>
+                     <fo:table-row>
+                        <fo:change-bar-begin change-bar-class="bodyCell" change-bar-offset="0.1mm"
+                           change-bar-color="blue"/>
+                        <fo:table-cell id="body-row2-col1">
+                           <fo:block>body-row2-col1</fo:block>
+                        </fo:table-cell>
+                        <fo:change-bar-end change-bar-class="bodyCell"/>
+                        <fo:table-cell id="body-row2-col2">
+                           <fo:change-bar-begin change-bar-class="bodyCellBlock"
+                              change-bar-offset="1mm"/>
+                           <fo:block>body-row2-col2</fo:block>
+                           <fo:change-bar-end change-bar-class="bodyCellBlock"/>
+                        </fo:table-cell>
+                     </fo:table-row>
+                  </fo:table-body>
+               </fo:table>
+            </fo:flow>
+         </fo:page-sequence>
+      </fo:root>
+   </fo>
+   <checks>
+      <!-- header -->
+      <eval expected="(solid,#008000,850)" xpath="//block[@prod-id='header-row1-col1']/block[1]/block[1]/@border-start"/>
+      <eval expected="-1133" xpath="//block[@prod-id='header-row1-col1']/block[1]/block[1]/@left-offset"/>
+      <eval expected="(solid,#008000,850)" xpath="//block[@prod-id='header-row1-col2']/block[1]/block[1]/@border-start"/>
+      <eval expected="-1133" xpath="//block[@prod-id='header-row1-col2']/block[1]/block[1]/@left-offset"/>
     
+      <eval expected="(solid,#0000ff,850)" xpath="//block[@prod-id='header-row2-col1']/block[1]/block[1]/@border-start"/>
+      <eval expected="-6519" xpath="//block[@prod-id='header-row2-col1']/block[1]/block[1]/@left-offset"/>
+      <eval expected="(solid,#ff0000,850)" xpath="//block[@prod-id='header-row2-col2']/block[1]/block[1]/@border-start"/>
+      <eval expected="-3684" xpath="//block[@prod-id='header-row2-col2']/block[1]/block[1]/@left-offset"/>
+      <!-- body -->
+      <eval expected="(solid,#ff0000,850)" xpath="//block[@prod-id='body-row1-col1']/block[1]/block[1]/@border-start"/>
+      <eval expected="-6519" xpath="//block[@prod-id='body-row1-col1']/block[1]/block[1]/@left-offset"/>
+      <eval expected="(solid,#ff0000,850)" xpath="//block[@prod-id='body-row1-col2']/block[1]/block[1]/@border-start"/>
+      <eval expected="-6519" xpath="//block[@prod-id='body-row1-col2']/block[1]/block[1]/@left-offset"/>
+      <eval expected="(solid,#0000ff,850)" xpath="//block[@prod-id='body-row2-col1']/block[1]/block[1]/@border-start"/>
+      <eval expected="-1133" xpath="//block[@prod-id='body-row2-col1']/block[1]/block[1]/@left-offset"/>
+      <eval expected="(solid,#ff0000,850)" xpath="//block[@prod-id='body-row2-col2']/block[1]/block[1]/@border-start"/>
+      <eval expected="-3684" xpath="//block[@prod-id='body-row2-col2']/block[1]/block[1]/@left-offset"/>
+      <!-- footer -->
+      <eval expected="(solid,#ff0000,850)" xpath="//block[@prod-id='footer-row1-col1']/block[1]/block[1]/@border-start"/>
+      <eval expected="-6519" xpath="//block[@prod-id='footer-row1-col1']/block[1]/block[1]/@left-offset"/>
+      <eval expected="(solid,#008000,850)" xpath="//block[@prod-id='footer-row1-col1']/block[1]/block[2]/@border-start"/>
+      <eval expected="-9353" xpath="//block[@prod-id='footer-row1-col1']/block[1]/block[2]/@left-offset"/>
+      <eval expected="(solid,#ff0000,850)" xpath="//block[@prod-id='footer-row1-col2']/block[1]/block[1]/@border-start"/>
+      <eval expected="-6519" xpath="//block[@prod-id='footer-row1-col2']/block[1]/block[1]/@left-offset"/>
+      <eval expected="(solid,#ff0000,850)" xpath="//block[@prod-id='footer-row2-col1']/block[1]/block[1]/@border-start"/>
+      <eval expected="-6519" xpath="//block[@prod-id='footer-row2-col1']/block[1]/block[1]/@left-offset"/>
+      <eval expected="(solid,#ff0000,850)" xpath="//block[@prod-id='footer-row2-col2']/block[1]/block[1]/@border-start"/>
+      <eval expected="-6519" xpath="//block[@prod-id='footer-row2-col2']/block[1]/block[1]/@left-offset"/>
+   </checks>
+</testcase>

Propchange: xmlgraphics/fop/branches/Temp_ChangeBars2/fop/test/layoutengine/standard-testcases/change-bar_table.xml
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
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