diff options
author | ot <ot@localhost> | 2007-10-03 07:39:54 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2007-10-03 07:39:54 +0000 |
commit | baa5362c8374547f7cf264d5a1b6bff3297345a3 (patch) | |
tree | b8c69dfd888f4e55f40cf90f0c528e3645800b2e /htdocs/dev/tests | |
parent | 0b2eaec5995447d23ec47d1aad66df7c8b48d7f3 (diff) | |
download | markup-validator-baa5362c8374547f7cf264d5a1b6bff3297345a3.zip markup-validator-baa5362c8374547f7cf264d5a1b6bff3297345a3.tar.gz markup-validator-baa5362c8374547f7cf264d5a1b6bff3297345a3.tar.bz2 |
tests for doctypeless (and doctyped, for comparison) SVG
Diffstat (limited to 'htdocs/dev/tests')
-rw-r--r-- | htdocs/dev/tests/3663-svg-10-doctype.svg | 17 | ||||
-rw-r--r-- | htdocs/dev/tests/3663-svg-10-doctypeless.svg | 16 | ||||
-rw-r--r-- | htdocs/dev/tests/3663-svg-11-doctype.svg | 15 | ||||
-rw-r--r-- | htdocs/dev/tests/3663-svg-11-doctypeless.svg | 13 | ||||
-rw-r--r-- | htdocs/dev/tests/3663-svg-basic-11-doctype.svg | 8 | ||||
-rw-r--r-- | htdocs/dev/tests/3663-svg-basic-11-doctypeless.svg | 6 | ||||
-rw-r--r-- | htdocs/dev/tests/3663-svg-noversion-doctype.svg | 13 | ||||
-rw-r--r-- | htdocs/dev/tests/3663-svg-noversion-doctype2.svg | 16 | ||||
-rw-r--r-- | htdocs/dev/tests/3663-svg-noversion-doctypeless.svg | 12 | ||||
-rw-r--r-- | htdocs/dev/tests/3663-svg-tiny-11-doctype.svg | 5 | ||||
-rw-r--r-- | htdocs/dev/tests/3663-svg-tiny-11-doctypeless.svg | 4 | ||||
-rwxr-xr-x | htdocs/dev/tests/index.html | 76 |
12 files changed, 198 insertions, 3 deletions
diff --git a/htdocs/dev/tests/3663-svg-10-doctype.svg b/htdocs/dev/tests/3663-svg-10-doctype.svg new file mode 100644 index 0000000..4c2794b --- /dev/null +++ b/htdocs/dev/tests/3663-svg-10-doctype.svg @@ -0,0 +1,17 @@ +<?xml version="1.0" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" + "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> +<svg width="5cm" height="4cm" + xmlns="http://www.w3.org/2000/svg"> + <desc>Four separate rectangles + </desc> + <rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/> + <rect x="0.5cm" y="2cm" width="1cm" height="1.5cm"/> + <rect x="3cm" y="0.5cm" width="1.5cm" height="2cm"/> + <rect x="3.5cm" y="3cm" width="1cm" height="0.5cm"/> + + <!-- Show outline of canvas using 'rect' element --> + <rect x=".01cm" y=".01cm" width="4.98cm" height="3.98cm" + fill="none" stroke="blue" stroke-width=".02cm" /> + +</svg>
\ No newline at end of file diff --git a/htdocs/dev/tests/3663-svg-10-doctypeless.svg b/htdocs/dev/tests/3663-svg-10-doctypeless.svg new file mode 100644 index 0000000..9601721 --- /dev/null +++ b/htdocs/dev/tests/3663-svg-10-doctypeless.svg @@ -0,0 +1,16 @@ +<?xml version="1.0" standalone="no"?> +<svg width="5cm" height="4cm" + xmlns="http://www.w3.org/2000/svg"> + <desc>Four separate rectangles + </desc> + <rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/> + <rect x="0.5cm" y="2cm" width="1cm" height="1.5cm"/> + <rect x="3cm" y="0.5cm" width="1.5cm" height="2cm"/> + <rect x="3.5cm" y="3cm" width="1cm" height="0.5cm"/> + + <!-- Show outline of canvas using 'rect' element --> + <rect x=".01cm" y=".01cm" width="4.98cm" height="3.98cm" + fill="none" stroke="blue" stroke-width=".02cm" /> + +</svg> + diff --git a/htdocs/dev/tests/3663-svg-11-doctype.svg b/htdocs/dev/tests/3663-svg-11-doctype.svg new file mode 100644 index 0000000..46af82d --- /dev/null +++ b/htdocs/dev/tests/3663-svg-11-doctype.svg @@ -0,0 +1,15 @@ +<?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="5cm" height="4cm" version="1.1" + xmlns="http://www.w3.org/2000/svg"> + <desc>Four separate rectangles + </desc> + <rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/> + <rect x="0.5cm" y="2cm" width="1cm" height="1.5cm"/> + <rect x="3cm" y="0.5cm" width="1.5cm" height="2cm"/> + <rect x="3.5cm" y="3cm" width="1cm" height="0.5cm"/> + <!-- Show outline of canvas using 'rect' element --> + <rect x=".01cm" y=".01cm" width="4.98cm" height="3.98cm" + fill="none" stroke="blue" stroke-width=".02cm" /> +</svg>
\ No newline at end of file diff --git a/htdocs/dev/tests/3663-svg-11-doctypeless.svg b/htdocs/dev/tests/3663-svg-11-doctypeless.svg new file mode 100644 index 0000000..e0b1e31 --- /dev/null +++ b/htdocs/dev/tests/3663-svg-11-doctypeless.svg @@ -0,0 +1,13 @@ +<?xml version="1.0" standalone="no"?> +<svg width="5cm" height="4cm" version="1.1" + xmlns="http://www.w3.org/2000/svg"> + <desc>Four separate rectangles + </desc> + <rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/> + <rect x="0.5cm" y="2cm" width="1cm" height="1.5cm"/> + <rect x="3cm" y="0.5cm" width="1.5cm" height="2cm"/> + <rect x="3.5cm" y="3cm" width="1cm" height="0.5cm"/> + <!-- Show outline of canvas using 'rect' element --> + <rect x=".01cm" y=".01cm" width="4.98cm" height="3.98cm" + fill="none" stroke="blue" stroke-width=".02cm" /> +</svg>
\ No newline at end of file diff --git a/htdocs/dev/tests/3663-svg-basic-11-doctype.svg b/htdocs/dev/tests/3663-svg-basic-11-doctype.svg new file mode 100644 index 0000000..efd032f --- /dev/null +++ b/htdocs/dev/tests/3663-svg-basic-11-doctype.svg @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd"> + +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="basic" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360"> + <title id="test-title">color-prop-01-b</title> + <desc id="test-desc">Test that viewer has the basic capability to process the color property</desc> + <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> +</svg> diff --git a/htdocs/dev/tests/3663-svg-basic-11-doctypeless.svg b/htdocs/dev/tests/3663-svg-basic-11-doctypeless.svg new file mode 100644 index 0000000..cd3878f --- /dev/null +++ b/htdocs/dev/tests/3663-svg-basic-11-doctypeless.svg @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="basic" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360"> + <title id="test-title">color-prop-01-b</title> + <desc id="test-desc">Test that viewer has the basic capability to process the color property</desc> + <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> +</svg> diff --git a/htdocs/dev/tests/3663-svg-noversion-doctype.svg b/htdocs/dev/tests/3663-svg-noversion-doctype.svg new file mode 100644 index 0000000..32cb294 --- /dev/null +++ b/htdocs/dev/tests/3663-svg-noversion-doctype.svg @@ -0,0 +1,13 @@ +<?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="5cm" height="4cm" xmlns="http://www.w3.org/2000/svg"> + <desc>This SVG sample has no version attribute in its root svg element, but has a doctype</desc> + <rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/> + <rect x="0.5cm" y="2cm" width="1cm" height="1.5cm"/> + <rect x="3cm" y="0.5cm" width="1.5cm" height="2cm"/> + <rect x="3.5cm" y="3cm" width="1cm" height="0.5cm"/> + <!-- Show outline of canvas using 'rect' element --> + <rect x=".01cm" y=".01cm" width="4.98cm" height="3.98cm" + fill="none" stroke="blue" stroke-width=".02cm" /> +</svg>
\ No newline at end of file diff --git a/htdocs/dev/tests/3663-svg-noversion-doctype2.svg b/htdocs/dev/tests/3663-svg-noversion-doctype2.svg new file mode 100644 index 0000000..3e3aa16 --- /dev/null +++ b/htdocs/dev/tests/3663-svg-noversion-doctype2.svg @@ -0,0 +1,16 @@ +<?xml version="1.0" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" + "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> +<svg width="5cm" height="4cm" + xmlns="http://www.w3.org/2000/svg"> + <desc>This SVG sample has no version attribute in its root svg element, but has a doctype (SVG 1.0)</desc> + <rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/> + <rect x="0.5cm" y="2cm" width="1cm" height="1.5cm"/> + <rect x="3cm" y="0.5cm" width="1.5cm" height="2cm"/> + <rect x="3.5cm" y="3cm" width="1cm" height="0.5cm"/> + + <!-- Show outline of canvas using 'rect' element --> + <rect x=".01cm" y=".01cm" width="4.98cm" height="3.98cm" + fill="none" stroke="blue" stroke-width=".02cm" /> + +</svg>
\ No newline at end of file diff --git a/htdocs/dev/tests/3663-svg-noversion-doctypeless.svg b/htdocs/dev/tests/3663-svg-noversion-doctypeless.svg new file mode 100644 index 0000000..2e5cdea --- /dev/null +++ b/htdocs/dev/tests/3663-svg-noversion-doctypeless.svg @@ -0,0 +1,12 @@ +<?xml version="1.0" standalone="no"?> + +<svg width="5cm" height="4cm" xmlns="http://www.w3.org/2000/svg"> + <desc>This SVG sample has no version attribute in its root svg element, nor any doctype</desc> + <rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/> + <rect x="0.5cm" y="2cm" width="1cm" height="1.5cm"/> + <rect x="3cm" y="0.5cm" width="1.5cm" height="2cm"/> + <rect x="3.5cm" y="3cm" width="1cm" height="0.5cm"/> + <!-- Show outline of canvas using 'rect' element --> + <rect x=".01cm" y=".01cm" width="4.98cm" height="3.98cm" + fill="none" stroke="blue" stroke-width=".02cm" /> +</svg>
\ No newline at end of file diff --git a/htdocs/dev/tests/3663-svg-tiny-11-doctype.svg b/htdocs/dev/tests/3663-svg-tiny-11-doctype.svg new file mode 100644 index 0000000..5b32946 --- /dev/null +++ b/htdocs/dev/tests/3663-svg-tiny-11-doctype.svg @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd"> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="tiny" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360"> +<ellipse cx="2" cy="4" rx="2" ry="1" /> +</svg> diff --git a/htdocs/dev/tests/3663-svg-tiny-11-doctypeless.svg b/htdocs/dev/tests/3663-svg-tiny-11-doctypeless.svg new file mode 100644 index 0000000..0b0e1c3 --- /dev/null +++ b/htdocs/dev/tests/3663-svg-tiny-11-doctypeless.svg @@ -0,0 +1,4 @@ +<?xml version="1.0" standalone="yes"?> + <svg xmlns="http://www.w3.org/2000/svg" width="4cm" height="8cm" version="1.1" baseProfile="tiny" > + <ellipse cx="2" cy="4" rx="2" ry="1" /> + </svg> diff --git a/htdocs/dev/tests/index.html b/htdocs/dev/tests/index.html index 4d8b0f9..79b29e0 100755 --- a/htdocs/dev/tests/index.html +++ b/htdocs/dev/tests/index.html @@ -1,5 +1,5 @@ -<!--#set var="revision" value="\$Id: index.html,v 1.93 2007-10-02 06:10:42 ot Exp $" ---><!--#set var="date" value="\$Date: 2007-10-02 06:10:42 $" +<!--#set var="revision" value="\$Id: index.html,v 1.94 2007-10-03 07:39:54 ot Exp $" +--><!--#set var="date" value="\$Date: 2007-10-03 07:39:54 $" --><!--#set var="title" value="The W3C Markup Validation Service: Tests" --><!--#set var="relroot" value="../../" --><!--#include virtual="../../header.html" --> @@ -13,6 +13,7 @@ <ul> <li><a href="#doctypes">Document types support</a></li> <li><a href="#valid_notcat">Document types outside the main catalogue</a></li> + <li><a href="#valid_doctypeless">Valid Doctypeless Documents</a></li> <li><a href="#valid_warn">Valid Documents, with Warnings</a></li> <li><a href="#wrong_mime">Valid Documents served with a wrong media type</a></li> <li><a href="#valid_bugfix">Bug Regression Tests: Valid documents</a></li> @@ -257,7 +258,76 @@ All these documents should validate, without "pretty print" for the document typ </ul> - + <h4 id="valid_doctypeless">Valid Doctypeless Documents</h4> + <p>Some document types (SVG) do not require the presence of the DOCTYPE declaration, although a DTD can be used to validate. The validator can however determine the version to validate against by preparsing the root element and the presence of version, baseProfile attributes.</p> + <ul> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-10-doctype.svg;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-10-doctype.svg;ss">with v.w.o</a> - + <a href="3663-svg-10-doctype.svg">view</a>: + Valid SVG 1.0, using a DOCTYPE + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-10-doctypeless.svg;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-10-doctypeless.svg;ss">with v.w.o</a> - + <a href="3663-svg-10-doctypeless.svg">view</a>: + Valid SVG 1.0, but no declared DOCTYPE. Version attribute present for auto-detection + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-11-doctype.svg;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-11-doctype.svg;ss">with v.w.o</a> - + <a href="3663-svg-11-doctype.svg">view</a>: + Valid SVG 1.1, using a DOCTYPE + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-11-doctypeless.svg;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-11-doctypeless.svg;ss">with v.w.o</a> - + <a href="3663-svg-11-doctypeless.svg">view</a>: + Valid SVG 1.1, no declared DOCTYPE. Version attribute present for auto-detection. + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-basic-11-doctype.svg;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-basic-11-doctype.svg;ss">with v.w.o</a> - + <a href="3663-svg-basic-11-doctype.svg">view</a>: + Valid SVG Basic 1.1, using a DOCTYPE + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-basic-11-doctypeless.svg;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-basic-11-doctypeless.svg;ss">with v.w.o</a> - + <a href="3663-svg-basic-11-doctypeless.svg">view</a>: + Valid SVG Basic 1.1, no declared DOCTYPE. Version and baseProfile attributes present for auto-detection. + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-tiny-11-doctype.svg;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-tiny-11-doctype.svg;ss">with v.w.o</a> - + <a href="3663-svg-tiny-11-doctype.svg">view</a>: + Valid SVG Tiny 1.1, using a DOCTYPE + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-tiny-11-doctypeless.svg;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-tiny-11-doctypeless.svg;ss">with v.w.o</a> - + <a href="3663-svg-tiny-11-doctypeless.svg">view</a>: + Valid SVG Basic 1.1, no declared DOCTYPE. Version and baseProfile attributes present for auto-detection. + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-noversion-doctype.svg">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-noversion-doctype.svg;ss">with v.w.o</a> - + <a href="3663-svg-noversion-doctype.svg">view</a>: + Valid SVG 1.1, using a DOCTYPE. No version attribute (optional). Should use info given by doctype. + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-noversion-doctype2.svg;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-noversion-doctype2.svg;ss">with v.w.o</a> - + <a href="html20.html">view</a>: + Valid SVG 1.0, using a DOCTYPE. No version attribute (optional). Should use info given by doctype. + </li> + <li> + <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-noversion-doctypeless.svg;ss">validate</a> - + <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-noversion-doctypeless.svg;ss">with v.w.o</a> - + <a href="3663-svg-noversion-doctypeless.svg">view</a>: + SVG with neither DOCTYPE nor version attribute. The validator may use a default. + </li> + </ul> <h4 id="valid_warn">Valid Documents, with Warnings</h4> <ul> <li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/2342-opensp_type_X.html">validate</a> - |