[lasem] tests: replace sample by files without CSS.



commit 22f199a2045c189b6013d704af04927ca14a3b73
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Sun Aug 8 16:13:19 2010 +0200

    tests: replace sample by files without CSS.

 test/svg/misc/linecap.png  |  Bin 0 -> 2785 bytes
 test/svg/misc/linecap.svg  |   34 +++++++++++++---------------------
 test/svg/misc/linejoin.png |  Bin 0 -> 5175 bytes
 test/svg/misc/linejoin.svg |   32 ++++++++++++--------------------
 4 files changed, 25 insertions(+), 41 deletions(-)
---
diff --git a/test/svg/misc/linecap.png b/test/svg/misc/linecap.png
new file mode 100644
index 0000000..da5413a
Binary files /dev/null and b/test/svg/misc/linecap.png differ
diff --git a/test/svg/misc/linecap.svg b/test/svg/misc/linecap.svg
index ca8a7a3..6981d81 100644
--- a/test/svg/misc/linecap.svg
+++ b/test/svg/misc/linecap.svg
@@ -1,40 +1,32 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
-  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
-<svg width="12cm" height="2cm" viewBox="0 0 1200 200" version="1.1"
+<?xml version="1.0"?>
+<svg width="12cm" height="2cm" viewBox="0 0 1200 200" version="1.2" baseProfile="tiny"
      xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";>
   <desc>Example linecap - demonstrates three stroke-linecap values</desc>
   <rect x="1" y="1" width="1198" height="198" fill="none" stroke="blue" />
-  <style type="text/css"><![CDATA[
-    .thick { stroke:black; stroke-width:70 }
-    .thin { stroke:#ffcccc; stroke-width:5 }
-    text { text-anchor:middle; font-size:50; font-family:Verdana }
-    circle { fill:#ffcccc; stroke:none }
-  ]]></style>
   <defs>
     <line id="line1" x1="-125" x2="125" y1="0" y2="0" fill="none" />
     <g id="circles">
-      <circle id="circle1" cx="-125" cy="0" r="8"/>
-      <circle id="circle2" cx="125" cy="0" r="8"/>
+      <circle fill="#ffcccc" stroke="none" id="circle1" cx="-125" cy="0" r="8"/>
+      <circle fill="#ffcccc" stroke="none" id="circle2" cx="125" cy="0" r="8"/>
     </g>
   </defs>
   <g transform="translate(200,75)">
-    <use class="thick" xlink:href="#line1" stroke-linecap="butt"/>
-    <use class="thin" xlink:href="#line1"/>
+    <use stroke="black" stroke-width="70" xlink:href="#line1" stroke-linecap="butt"/>
+    <use stroke="#ffcccc" stroke-width="5" xlink:href="#line1"/>
     <use xlink:href="#circles"/>
-    <text y="90">'butt' cap</text>
+    <text text-anchor="middle" font-size="50" font-family="Verdana" y="90">'butt' cap</text>
   </g>
   <g transform="translate(600,75)">
-    <use class="thick" xlink:href="#line1" stroke-linecap="round"/>
-    <use class="thin" xlink:href="#line1"/>
+    <use stroke="black" stroke-width="70" xlink:href="#line1" stroke-linecap="round"/>
+    <use stroke="#ffcccc" stroke-width="5" xlink:href="#line1"/>
     <use xlink:href="#circles"/>
-    <text y="90">'round' cap</text>
+    <text text-anchor="middle" font-size="50" font-family="Verdana" y="90">'round' cap</text>
   </g>
   <g transform="translate(1000,75)">
-    <use class="thick" xlink:href="#line1" stroke-linecap="square"/>
-    <use class="thin" xlink:href="#line1"/>
+    <use stroke="black" stroke-width="70" xlink:href="#line1" stroke-linecap="square"/>
+    <use stroke="#ffcccc" stroke-width="5" xlink:href="#line1"/>
     <use xlink:href="#circles"/>
-    <text y="90">'square' cap</text>
+    <text text-anchor="middle" font-size="50" font-family="Verdana" y="90">'square' cap</text>
   </g>
 </svg>
 
diff --git a/test/svg/misc/linejoin.png b/test/svg/misc/linejoin.png
new file mode 100644
index 0000000..cb82a9f
Binary files /dev/null and b/test/svg/misc/linejoin.png differ
diff --git a/test/svg/misc/linejoin.svg b/test/svg/misc/linejoin.svg
index e5b0660..3d4c3cd 100644
--- a/test/svg/misc/linejoin.svg
+++ b/test/svg/misc/linejoin.svg
@@ -1,37 +1,29 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
-  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
-<svg width="12cm" height="3.5cm" viewBox="0 0 1200 350" version="1.1"
+<?xml version="1.0"?>
+<svg width="12cm" height="3.5cm" viewBox="0 0 1200 350" version="1.2" baseProfile="tiny"
      xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";>
   <desc>Example linecap - demonstrates three stroke-linecap values</desc>
   <rect x="1" y="1" width="1198" height="348" fill="none" stroke="blue" />
-  <style type="text/css"><![CDATA[
-    .thick { stroke:black; stroke-width:70 }
-    .thin { stroke:#ffcccc; stroke-width:5 }
-    text { text-anchor:middle; font-size:50; font-family:Verdana }
-    circle { fill:#ffcccc; stroke:none }
-  ]]></style>
   <defs>
     <path id="path1" d="M -125,150 L 0,0 L 125,150" fill="none" />
-    <circle id="circle1" cx="0" cy="0" r="8"/>
+    <circle fill="#ffcccc" stroke="none" id="circle1" cx="0" cy="0" r="8"/>
   </defs>
   <g transform="translate(200,75)">
-    <use class="thick" xlink:href="#path1" stroke-linejoin="miter"/>
-    <use class="thin" xlink:href="#path1"/>
+    <use stroke="black" stroke-width="70" xlink:href="#path1" stroke-linejoin="miter"/>
+    <use stroke="#ffcccc" stroke-width="5" xlink:href="#path1"/>
     <use xlink:href="#circle1"/>
-    <text y="230">'miter' join</text>
+    <text text-anchor="middle" font-size="50" font-family="Verdana" y="230">'miter' join</text>
   </g>
   <g transform="translate(600,75)">
-    <use class="thick" xlink:href="#path1" stroke-linejoin="round"/>
-    <use class="thin" xlink:href="#path1"/>
+    <use stroke="black" stroke-width="70" xlink:href="#path1" stroke-linejoin="round"/>
+    <use stroke="#ffcccc" stroke-width="5" xlink:href="#path1"/>
     <use xlink:href="#circle1"/>
-    <text y="230">'round' join</text>
+    <text text-anchor="middle" font-size="50" font-family="Verdana" y="230">'round' join</text>
   </g>
   <g transform="translate(1000,75)">
-    <use class="thick" xlink:href="#path1" stroke-linejoin="bevel"/>
-    <use class="thin" xlink:href="#path1"/>
+    <use stroke="black" stroke-width="70" xlink:href="#path1" stroke-linejoin="bevel"/>
+    <use stroke="#ffcccc" stroke-width="5" xlink:href="#path1"/>
     <use xlink:href="#circle1"/>
-    <text y="230">'bevel' join</text>
+    <text text-anchor="middle" font-size="50" font-family="Verdana" y="230">'bevel' join</text>
   </g>
 </svg>
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]