[cairo-commit] svgslides/test test.xml,1.1,1.2

Carl Worth commit at pdx.freedesktop.org
Sat Feb 12 19:41:50 PST 2005


Committed by: cworth

Update of /cvs/cairo/svgslides/test
In directory gabe:/tmp/cvs-serv2895/test

Modified Files:
	test.xml 
Log Message:

       * test/test.xml: Add tests for indentation and img tag.

        * src/svgslides-4suite (get_attr, get_attr_float): Add some much
        needed convenience functions for getting attributes (of the right
        type and with default values).
        (prev_sib, find_position_content_node)
        (find_position_content_nodes, find_height_content_node)
        (find_height_content_nodes, layout_content_nodes): Fix layout of
        bulleted lists. Now supports multiple levels of indentation.
        (transform_li): Add bullet to <li> results.
        (transform_img): Add support for <img> tag.


Index: test.xml
===================================================================
RCS file: /cvs/cairo/svgslides/test/test.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- test.xml	12 Feb 2005 18:21:18 -0000	1.1
+++ test.xml	13 Feb 2005 03:41:48 -0000	1.2
@@ -6,36 +6,39 @@
 
   <slides theme="default">
 
-    <slide title="This is a slide">
+    <slide title="Test indentation">
       <ul>
 	<li>This slide has a list</li>
-	<li>And it has an image</li>
-	<li>etc.</li>
+	<li>And sub-lists</li>
+	<ul>
+	  <li>Sub-item</li>
+	  <ul>
+	    <li>sub-sub items.</li>
+	    <li>end sub-sub</li>
+	  </ul>
+	  <li>end sub</li>
+	</ul>
+	<li>end main</li>
       </ul>
     </slide>
 
-    <slide title="Bigblue Theme"
-	   theme="bigblue">
+    <slide title="Test img tag">
       <ul>
-	<li>A</li>
-	<li>B</li>
-	<li>C</li>
+	<li>And now is the time...</li>
+	<li bullet="off">...to include an image:</li>
       </ul>
       <img src="glider-blue.svg"
 	   x="1.0"
 	   y="0.5"
 	   x-align="right"
 	   y-align="center" />
+      <img src="glider-blue.svg"
+	   x="0.5"
+	   y="1.0"
+	   x-align="center"
+	   y-align="bottom" />
     </slide>
 
-    <slide title="Back to normal"
-	   footer="this is a footer">
-      <ul>
-	<li>X</li>
-	<li>Y</li>
-	<li>Z</li>
-      </ul>
-    </slide>
 
   </slides>
 </svgslides>




More information about the cairo-commit mailing list