Updated test templates (automated and visual tests).
authortbah <tavmjong@free.fr>
Sun, 17 Jun 2012 03:54:10 +0200
changeset 22 eaa3609beae3
parent 21 d07699cdac85
child 23 123791e61c1a
Updated test templates (automated and visual tests).
contributors/tavmjong/submitted/README
contributors/tavmjong/submitted/template_automated.svg
contributors/tavmjong/submitted/template_automated_ref.svg
contributors/tavmjong/submitted/template_visual.svg
contributors/tavmjong/submitted/template_visual_ref.svg
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contributors/tavmjong/submitted/README	Sun Jun 17 03:54:10 2012 +0200
@@ -0,0 +1,19 @@
+
+There are two templates:
+
+1. template_automated.svg:
+
+   For automated testing. Nominally, a test should turn a single
+   centered red square to green.
+
+   
+2. template_visual.svg:
+
+   For tests that cannot be automated or are designed for visual
+   scanning.  A default font is specified so that labels are of known
+   size.
+
+
+In both tests, red should be used to indicate failure and green for
+passing, unless the test requires other colors (e.g. one is testing
+colors explicitly).
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contributors/tavmjong/submitted/template_automated.svg	Sun Jun 17 03:54:10 2012 +0200
@@ -0,0 +1,40 @@
+<svg id="svg-root"
+  width="100%" height="100%" viewBox="0 0 480 360"
+  xmlns="http://www.w3.org/2000/svg" 
+  xmlns:xlink="http://www.w3.org/1999/xlink"
+  xmlns:html="http://www.w3.org/1999/xhtml">
+
+  <g id="testmeta">
+    <title>SVG Test: DESCRIPTION OF TEST</title>
+    <html:link rel="copyright"
+          href="http://www.w3.org/Graphics/SVG/Test/Copyright"/>
+    <html:link rel="license"
+          href="http://www.w3.org/Consortium/Legal/2008/03-bsd-license.html"/>
+    <html:link rel="author"
+          title="NAME_OF_AUTHOR"
+          href="mailto:EMAIL OR http://CONTACT_PAGE"/>
+    <html:link rel="reviewer"
+          title="NAME_OF_REVIEWER"
+          href="mailto:EMAIL OR http://CONTACT_PAGE" />
+          <!-- YYYY-MM-DD -->
+    <html:link rel="help"
+          href="RELEVANT_SPEC_SECTION"/>
+    <html:link rel="match"  href="RELATIVE_PATH_TO_REFERENCE_FILE" />
+    <html:link rel="mismatch" href="RELATIVE_PATH_TO_REFERENCE_FILE" />
+    <metadata class="flags">TOKENS</metadata>
+    <desc class="assert">TEST ASSERTION</desc>
+  </g>
+
+  <style id="test-style" type="text/css">
+    /* Style that is being tested (if needed). */
+    rect { fill: green; }
+  </style>
+
+  <defs></defs>
+
+  <g id="test-body-content">
+    <!-- Your test should turn this rectangle green. -->
+    <rect x="190" y="130" width="100" height="100" fill="red"/>
+  </g>
+
+</svg>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contributors/tavmjong/submitted/template_automated_ref.svg	Sun Jun 17 03:54:10 2012 +0200
@@ -0,0 +1,28 @@
+<svg id="svg-root"
+  width="100%" height="100%" viewBox="0 0 480 360"
+  xmlns="http://www.w3.org/2000/svg" 
+  xmlns:xlink="http://www.w3.org/1999/xlink"
+  xmlns:html="http://www.w3.org/1999/xhtml">
+
+  <g id="testmeta">
+    <title>SVG Test: DESCRIPTION OF TEST</title>
+    <html:link rel="copyright"
+          href="http://www.w3.org/Graphics/SVG/Test/Copyright"/>
+    <html:link rel="license"
+          href="http://www.w3.org/Consortium/Legal/2008/03-bsd-license.html"/>
+    <html:link rel="author"
+          title="NAME_OF_AUTHOR"
+          href="mailto:EMAIL OR http://CONTACT_PAGE"/>
+    <html:link rel="reviewer"
+          title="NAME_OF_REVIEWER"
+          href="mailto:EMAIL OR http://CONTACT_PAGE" />
+          <!-- YYYY-MM-DD -->
+  </g>
+
+  <defs></defs>
+
+  <g id="test-body-content">
+    <rect x="190" y="130" width="100" height="100" fill="green"/>
+  </g>
+
+</svg>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contributors/tavmjong/submitted/template_visual.svg	Sun Jun 17 03:54:10 2012 +0200
@@ -0,0 +1,50 @@
+<svg id="svg-root"
+  width="100%" height="100%" viewBox="0 0 480 360"
+  xmlns="http://www.w3.org/2000/svg" 
+  xmlns:xlink="http://www.w3.org/1999/xlink"
+  xmlns:html="http://www.w3.org/1999/xhtml">
+
+  <g id="testmeta">
+    <title>SVG Test: DESCRIPTION OF TEST</title>
+    <html:link rel="copyright"
+          href="http://www.w3.org/Graphics/SVG/Test/Copyright"/>
+    <html:link rel="license"
+          href="http://www.w3.org/Consortium/Legal/2008/03-bsd-license.html"/>
+    <html:link rel="author"
+          title="NAME_OF_AUTHOR"
+          href="mailto:EMAIL OR http://CONTACT_PAGE"/>
+    <html:link rel="reviewer"
+          title="NAME_OF_REVIEWER"
+          href="mailto:EMAIL OR http://CONTACT_PAGE" />
+          <!-- YYYY-MM-DD -->
+    <html:link rel="help"
+          href="RELEVANT_SPEC_SECTION"/>
+    <html:link rel="match"  href="RELATIVE_PATH_TO_REFERENCE_FILE" />
+    <html:link rel="mismatch" href="RELATIVE_PATH_TO_REFERENCE_FILE" />
+    <metadata class="flags">TOKENS</metadata>
+    <desc class="assert">TEST ASSERTION</desc>
+  </g>
+
+  <style id="test-font" type="text/css">
+    /* Standard Font (if needed). */
+    @font-face {
+      font-family: FreeSans;
+      src: url("fonts/FreeSans.woff" format("woff"),
+    }
+    text { font-family: FreeSans, sans-serif }
+  </style>
+
+  <style id="test-style" type="text/css">
+    /* Style that is being tested (if needed). */
+    text { fill: green; }
+  </style>
+
+  <defs></defs>
+
+  <text id="title" x="240" y="50" style="fill:black; font-size:24px; text-anchor:middle;">SVG Test Template</text>
+
+  <g id="test-body-content">
+    <text x="50" y="100" fill="red">This text should be green.</text>
+  </g>
+
+</svg>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contributors/tavmjong/submitted/template_visual_ref.svg	Sun Jun 17 03:54:10 2012 +0200
@@ -0,0 +1,39 @@
+<svg id="svg-root"
+  width="100%" height="100%" viewBox="0 0 480 360"
+  xmlns="http://www.w3.org/2000/svg" 
+  xmlns:xlink="http://www.w3.org/1999/xlink"
+  xmlns:html="http://www.w3.org/1999/xhtml">
+
+  <g id="testmeta">
+    <title>SVG Test: DESCRIPTION OF TEST</title>
+    <html:link rel="copyright"
+          href="http://www.w3.org/Graphics/SVG/Test/Copyright"/>
+    <html:link rel="license"
+          href="http://www.w3.org/Consortium/Legal/2008/03-bsd-license.html"/>
+    <html:link rel="author"
+          title="NAME_OF_AUTHOR"
+          href="mailto:EMAIL OR http://CONTACT_PAGE"/>
+    <html:link rel="reviewer"
+          title="NAME_OF_REVIEWER"
+          href="mailto:EMAIL OR http://CONTACT_PAGE" />
+          <!-- YYYY-MM-DD -->
+  </g>
+
+  <style id="test-font" type="text/css">
+    /* Standard Font (if needed). */
+    @font-face {
+      font-family: FreeSans;
+      src: url("fonts/FreeSans.woff" format("woff"),
+    }
+    text { font-family: FreeSans, sans-serif }
+  </style>
+
+  <defs></defs>
+
+  <text id="title" x="240" y="50" style="fill:black; font-size:24px; text-anchor:middle;">SVG Test Template</text>
+
+  <g id="test-body-content">
+    <text x="50" y="100" fill="green">This text should be green.</text>
+  </g>
+
+</svg>