summaryrefslogtreecommitdiffstats
path: root/htdocs/dev/tests
diff options
context:
space:
mode:
authorot <ot@localhost>2007-03-07 07:27:38 +0000
committerot <ot@localhost>2007-03-07 07:27:38 +0000
commit24d896c984ea9aa6e8a83e2b67265aeff9ed37de (patch)
treea030ce0897eb4e24ad501c10976bab7398788122 /htdocs/dev/tests
parent415031283cd34fc12c94e8cc575114625757f266 (diff)
downloadmarkup-validator-24d896c984ea9aa6e8a83e2b67265aeff9ed37de.zip
markup-validator-24d896c984ea9aa6e8a83e2b67265aeff9ed37de.tar.gz
markup-validator-24d896c984ea9aa6e8a83e2b67265aeff9ed37de.tar.bz2
adding tests for documents served with wrong media type
Diffstat (limited to 'htdocs/dev/tests')
-rw-r--r--htdocs/dev/tests/REC-SVG-1_0-minimal.html17
-rw-r--r--htdocs/dev/tests/html401-strict.html14
-rw-r--r--htdocs/dev/tests/html401-strict.xhtml14
-rwxr-xr-xhtdocs/dev/tests/index.html58
-rwxr-xr-xhtdocs/dev/tests/mathml2.mathml6
-rw-r--r--htdocs/dev/tests/xhtml-print_1_0.html18
6 files changed, 117 insertions, 10 deletions
diff --git a/htdocs/dev/tests/REC-SVG-1_0-minimal.html b/htdocs/dev/tests/REC-SVG-1_0-minimal.html
new file mode 100644
index 0000000..189d859
--- /dev/null
+++ b/htdocs/dev/tests/REC-SVG-1_0-minimal.html
@@ -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">
+<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/html401-strict.html b/htdocs/dev/tests/html401-strict.html
new file mode 100644
index 0000000..5ed58b2
--- /dev/null
+++ b/htdocs/dev/tests/html401-strict.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
+
+<html lang="en">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>html401-strict</title>
+ <meta name="generator" content="TextMate http://macromates.com/">
+ <meta name="author" content="olivier Thereaux">
+ <!-- Date: 2007-03-07 -->
+</head>
+<body>
+<p>Sample HTML 4.01 Strict document, with proper FPI, no SI.</p>
+</body>
+</html>
diff --git a/htdocs/dev/tests/html401-strict.xhtml b/htdocs/dev/tests/html401-strict.xhtml
new file mode 100644
index 0000000..5ed58b2
--- /dev/null
+++ b/htdocs/dev/tests/html401-strict.xhtml
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
+
+<html lang="en">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>html401-strict</title>
+ <meta name="generator" content="TextMate http://macromates.com/">
+ <meta name="author" content="olivier Thereaux">
+ <!-- Date: 2007-03-07 -->
+</head>
+<body>
+<p>Sample HTML 4.01 Strict document, with proper FPI, no SI.</p>
+</body>
+</html>
diff --git a/htdocs/dev/tests/index.html b/htdocs/dev/tests/index.html
index cea3ea8..e2a8fb3 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.62 2007-02-22 06:12:05 ot Exp $"
---><!--#set var="date" value="\$Date: 2007-02-22 06:12:05 $"
+<!--#set var="revision" value="\$Id: index.html,v 1.63 2007-03-07 07:27:38 ot Exp $"
+--><!--#set var="date" value="\$Date: 2007-03-07 07:27:38 $"
--><!--#set var="title" value="The W3C Markup Validation Service: Tests"
--><!--#set var="relroot" value="../../"
--><!--#include virtual="../../header.html" -->
@@ -9,7 +9,14 @@
<h3 id="TableOfContents">Table of contents</h3>
<div id="toc">
<ol>
- <li><a href="#doctypes">Document types support</a> (all should pass validation)</li>
+ <li><a href="#valid">Valid Document</a> (all should pass validation)</li>
+ <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_warn">Valid Documents, with Warnings</a></li>
+ <li><a href="#wrong_mime">Valid Documents served with a wrong media type</a></li>
+
+ </ul>
<li><a href="#invalid">Invalid documents</a></li>
<li><a href="#well-formed">Docs that should be Well Formed</a></li>
<li><a href="#encodings">Various Encodings</a></li>
@@ -27,7 +34,8 @@
<a href="../../feedback.html">let us know</a>.
</p>
-<h3 id="doctypes">Document types support</h3>
+<h3 id="valid">Valid Documents</h3>
+<h4 id="doctypes">Document types support</h4>
<p>
Below is a list of sample documents for a number of document types the validator is supposed to be supporting.
The first validate link will attempt validation with the current instance, for test purposes. The v.w.o instance
@@ -66,6 +74,13 @@
HTML 4.0 Frameset
</li>
<li>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html401-strict.html;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html401-strict.html;ss">with v.w.o</a> -
+ <a href="html401-strict.html">view</a>:
+ HTML 4.01 Strict
+ </li>
+
+ <li>
<a href="../../check?uri=http://www.w3.org/TR/1999/PR-html40-19990824/">validate</a> -
<a href="http://validator.w3.org/check?uri=http://www.w3.org/TR/1999/PR-html40-19990824/">with v.w.o</a> -
<a href="http://www.w3.org/TR/1999/PR-html40-19990824/">view</a>:
@@ -116,9 +131,9 @@
(with FPI)
</li>
<li>
- <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/mathml2.html;ss">validate</a> -
- <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/mathml2.html;ss">with v.w.o</a> -
- <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/mathml2.html">view</a>:
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/mathml2.mathml;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/mathml2.mathml;ss">with v.w.o</a> -
+ <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/mathml2.mathml">view</a>:
MathML 2.0
(minimal test document)
</li>
@@ -161,7 +176,7 @@
</ul>
-<h4>Document types outside the main catalogue</h4>
+<h4 id="valid_notcat">Document types outside the main catalogue</h4>
<p>Below is a number of other types of documents that the validator does not have in its "hardcoded" catalogue, but should support anyway.
All these documents should validate, without "pretty print" for the document type</p>
@@ -186,7 +201,7 @@ All these documents should validate, without "pretty print" for the document typ
</li>
</ul>
- <h3>Valid Documents, with Warnings</h3>
+ <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> -
<a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/2342-opensp_type_X.html">with v.w.o</a> -
@@ -197,8 +212,31 @@ All these documents should validate, without "pretty print" for the document typ
<a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/nonSGML-chars.html">Non-SGML Chars.</a></li>
</ul>
+<h4 id="wrong_mime">Valid Documents served with a wrong media type</h4>
+<ul>
+ <li>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html401-strict.xhtml;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html401-strict.xhtml;ss">with v.w.o</a> -
+ <a href="html401-strict.xhtml">view</a>:
+ HTML 4.01 Strict served with an XHTML mime type
+ </li>
+<li>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/REC-SVG-1_0-minimal.html">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/REC-SVG-1_0-minimal.html">validate</a> -
+ <a href="REC-SVG-1_0-minimal.html">View</a> SVG 1.0 Rec. minimal document served as text/html</li>
+ <li>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-print_1_0.html">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-print_1_0.html">with v.w.o</a> -
+ <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml-print_1_0.html">view</a>:
+ XHTML-Print served as text/html
+ </li>
+ <li>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/mathml2.html;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/mathml2.html;ss">with v.w.o</a> -
+ <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/mathml2.html">view</a>:
+ MathML 2.0 as text/html </li>
-
+</ul>
<h3 id="invalid">Invalid Documents</h3>
diff --git a/htdocs/dev/tests/mathml2.mathml b/htdocs/dev/tests/mathml2.mathml
new file mode 100755
index 0000000..19cbaa1
--- /dev/null
+++ b/htdocs/dev/tests/mathml2.mathml
@@ -0,0 +1,6 @@
+<!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN"
+"http://www.w3.org/TR/CR-MathML2-20001113/dtd/mathml2.dtd">
+<math>
+<mrow>
+</mrow>
+</math>
diff --git a/htdocs/dev/tests/xhtml-print_1_0.html b/htdocs/dev/tests/xhtml-print_1_0.html
new file mode 100644
index 0000000..09c97e1
--- /dev/null
+++ b/htdocs/dev/tests/xhtml-print_1_0.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML-Print 1.0//EN"
+ "http://www.w3.org/MarkUp/DTD/xhtml-print10.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>sample XHTML print document</title>
+</head>
+<body>
+<div class="TestPurpose">If a printer encounters an image in a format it does not support, it SHALL
+render any alternate content provided, </div>
+<div>
+<img src="example.unknown" alt="This image alt text must be printed." width="100" height="100" />
+<object type="example/unknown" width="100" height="100" data="unknown:example.unknown">
+ This content of the object element must be printed</object>
+
+</div>
+</body>
+</html> \ No newline at end of file