]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Additional test using margin-left on the list-item and non-default values for provisi...
authorJeremias Maerki <jeremias@apache.org>
Fri, 28 Jan 2005 14:31:35 +0000 (14:31 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 28 Jan 2005 14:31:35 +0000 (14:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198336 13f79535-47bb-0310-9956-ffa450edef68

test/layoutengine/testcases/list1.xml

index 5b4a3ffd0ef2947418f43cba78f73bb3c561bb1c..57722286d79d50a2fd34983e37b783cebf623b34 100644 (file)
               </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-left="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>
     <!-- list-block -->
-    <eval expected="360000" xpath="//flow/block/@ipd"/>
-    <eval expected="43200" xpath="//flow/block/@bpd"/>
+    <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/block[1]/@ipd"/>
-    <eval expected="14400" xpath="//flow/block/block[1]/@bpd"/>
+    <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/block[1]/block[1]/@ipd"/>
-    <eval expected="14400" xpath="//flow/block/block[1]/block[1]/@bpd"/>
+    <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 second list-item -->
-    <eval expected="360000" xpath="//flow/block/block[1]/block[2]/block[1]/@ipd"/>
-    <eval expected="14400" xpath="//flow/block/block[1]/block[2]/block[1]/@bpd"/>
-    <true xpath="not(//flow/block/block[1]/block[1]/block[1]/@start-indent)"/>
-    <true xpath="not(//flow/block/block[1]/block[1]/block[1]/@end-indent)"/>
+    <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"/>
+    <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)"/>
     <!-- body of first list-item -->
-    <eval expected="360000" xpath="//flow/block/block[1]/block[2]/@ipd"/>
-    <eval expected="14400" xpath="//flow/block/block[1]/block[2]/@bpd"/>
+    <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/block[1]/block[2]/block[1]/@ipd"/>
-    <eval expected="14400" xpath="//flow/block/block[1]/block[2]/block[1]/@bpd"/>
-    <true xpath="not(//flow/block/block[1]/block[2]/block[1]/@start-indent)"/>
-    <true xpath="not(//flow/block/block[1]/block[2]/block[1]/@end-indent)"/>
+    <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"/>
+    <true xpath="not(//flow/block[1]/block[1]/block[2]/block[1]/@start-indent)"/>
+    <true xpath="not(//flow/block[1]/block[1]/block[2]/block[1]/@end-indent)"/>
 
     <!-- second list-item -->
-    <eval expected="360000" xpath="//flow/block/block[2]/@ipd"/>
-    <eval expected="14400" xpath="//flow/block/block[2]/@bpd"/>
+    <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/block[2]/block[1]/@ipd"/>
-    <eval expected="14400" xpath="//flow/block/block[2]/block[1]/@bpd"/>
+    <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/block[2]/block[1]/block[1]/@ipd"/>
-    <eval expected="14400" xpath="//flow/block/block[2]/block[1]/block[1]/@bpd"/>
-    <eval expected="10000" xpath="//flow/block/block[2]/block[1]/block[1]/@start-indent"/>
-    <eval expected="342000" xpath="//flow/block/block[2]/block[1]/block[1]/@end-indent"/>
+    <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="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"/>
     <!-- body of second list-item -->
-    <eval expected="360000" xpath="//flow/block/block[2]/block[2]/@ipd"/>
-    <eval expected="14400" xpath="//flow/block/block[2]/block[2]/@bpd"/>
+    <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/block[2]/block[2]/block[1]/@ipd"/>
-    <eval expected="14400" xpath="//flow/block/block[2]/block[2]/block[1]/@bpd"/>
-    <eval expected="100000" xpath="//flow/block/block[2]/block[2]/block[1]/@start-indent"/>
-    <true xpath="not(//flow/block/block[2]/block[2]/block[1]/@end-indent)"/>
+    <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="100000" xpath="//flow/block[1]/block[2]/block[2]/block[1]/@start-indent"/>
+    <true xpath="not(//flow/block[1]/block[2]/block[2]/block[1]/@end-indent)"/>
 
     <!-- third list-item -->
-    <eval expected="360000" xpath="//flow/block/block[3]/@ipd"/>
-    <eval expected="14400" xpath="//flow/block/block[3]/@bpd"/>
+    <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"/>
+    <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"/>
+    <!-- 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="24000" xpath="//flow/block[1]/block[3]/block[2]/block[1]/@start-indent"/>
+    <true xpath="not(//flow/block[1]/block[3]/block[2]/block[1]/@end-indent)"/>
+
+    <!-- fourth list-item -->
+    <eval expected="360000" xpath="//flow/block[2]/block[1]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block[2]/block[1]/@bpd"/>
     <!-- label of third list-item -->
-    <eval expected="360000" xpath="//flow/block/block[3]/block[1]/@ipd"/>
-    <eval expected="14400" xpath="//flow/block/block[3]/block[1]/@bpd"/>
+    <eval expected="360000" 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 third list-item -->
-    <eval expected="18000" xpath="//flow/block/block[3]/block[1]/block[1]/@ipd"/>
-    <eval expected="14400" xpath="//flow/block/block[3]/block[1]/block[1]/@bpd"/>
-    <true xpath="not(//flow/block/block[3]/block[1]/block[1]/@start-indent)"/>
-    <eval expected="342000" xpath="//flow/block/block[3]/block[1]/block[1]/@end-indent"/>
+    <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="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"/>
     <!-- body of third list-item -->
-    <eval expected="360000" xpath="//flow/block/block[3]/block[2]/@ipd"/>
-    <eval expected="14400" xpath="//flow/block/block[3]/block[2]/@bpd"/>
+    <eval expected="360000" 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 third list-item -->
-    <eval expected="336000" xpath="//flow/block/block[3]/block[2]/block[1]/@ipd"/>
-    <eval expected="14400" xpath="//flow/block/block[3]/block[2]/block[1]/@bpd"/>
-    <eval expected="24000" xpath="//flow/block/block[3]/block[2]/block[1]/@start-indent"/>
-    <true xpath="not(//flow/block/block[3]/block[2]/block[1]/@end-indent)"/>
+    <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="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)"/>
   </checks>
 </testcase>