summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorot <ot@localhost>2008-08-20 19:32:00 +0000
committerot <ot@localhost>2008-08-20 19:32:00 +0000
commit37ec3ec5a4e1b264df5703afa8c2abf506d33131 (patch)
treeea85b777816d6689aa5e1618ef0c02662ea5f3b8
parent8e1ae9f1be916936b9ab3c3618714c8d95063446 (diff)
downloadmarkup-validator-37ec3ec5a4e1b264df5703afa8c2abf506d33131.zip
markup-validator-37ec3ec5a4e1b264df5703afa8c2abf506d33131.tar.gz
markup-validator-37ec3ec5a4e1b264df5703afa8c2abf506d33131.tar.bz2
adding html5 test cases
-rw-r--r--htdocs/dev/tests/html5-error-explanation.html6
-rw-r--r--htdocs/dev/tests/html5-ok.html9
-rw-r--r--htdocs/dev/tests/html5-precise-error.html9
-rw-r--r--htdocs/dev/tests/html5-range-error.html9
-rw-r--r--htdocs/dev/tests/html5-warning.html9
-rwxr-xr-xhtdocs/dev/tests/index.html44
-rw-r--r--misc/testsuite/catalog.xml47
7 files changed, 131 insertions, 2 deletions
diff --git a/htdocs/dev/tests/html5-error-explanation.html b/htdocs/dev/tests/html5-error-explanation.html
new file mode 100644
index 0000000..31f93d4
--- /dev/null
+++ b/htdocs/dev/tests/html5-error-explanation.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<html><head><title>Error, with elaboration</title></head>
+<body>
+<a ref="foo"></a>
+</body></html>
+
diff --git a/htdocs/dev/tests/html5-ok.html b/htdocs/dev/tests/html5-ok.html
new file mode 100644
index 0000000..81cbd64
--- /dev/null
+++ b/htdocs/dev/tests/html5-ok.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>No message</title>
+</head>
+<body>
+<p>No message</p>
+</body>
+</html> \ No newline at end of file
diff --git a/htdocs/dev/tests/html5-precise-error.html b/htdocs/dev/tests/html5-precise-error.html
new file mode 100644
index 0000000..be97a02
--- /dev/null
+++ b/htdocs/dev/tests/html5-precise-error.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Tokenizer error</title>
+</head>
+<body>
+<p>&a</p>
+</body>
+</html> \ No newline at end of file
diff --git a/htdocs/dev/tests/html5-range-error.html b/htdocs/dev/tests/html5-range-error.html
new file mode 100644
index 0000000..59041a4
--- /dev/null
+++ b/htdocs/dev/tests/html5-range-error.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Tree builder error</title>
+</head>
+<body>
+<p><span></p>
+</body>
+</html> \ No newline at end of file
diff --git a/htdocs/dev/tests/html5-warning.html b/htdocs/dev/tests/html5-warning.html
new file mode 100644
index 0000000..02ba8df
--- /dev/null
+++ b/htdocs/dev/tests/html5-warning.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Warning</title>
+</head>
+<body>
+<p class=foo<bar></p>
+</body>
+</html> \ No newline at end of file
diff --git a/htdocs/dev/tests/index.html b/htdocs/dev/tests/index.html
index 234dd56..ad07c5b 100755
--- a/htdocs/dev/tests/index.html
+++ b/htdocs/dev/tests/index.html
@@ -1,6 +1,6 @@
-<!--#set var="revision" value="\$Id: index.html,v 1.106 2008-07-28 19:44:54 ot Exp $"
---><!--#set var="date" value="\$Date: 2008-07-28 19:44:54 $"
+<!--#set var="revision" value="\$Id: index.html,v 1.107 2008-08-20 19:32:00 ot Exp $"
+--><!--#set var="date" value="\$Date: 2008-08-20 19:32:00 $"
--><!--#set var="title" value="The W3C Markup Validation Service: Tests"
--><!--#set var="relroot" value="../../"
--><!--#include virtual="../../header.html" -->
@@ -151,6 +151,14 @@
(test for </p>
+ <h5>HTML5 support test</h5>
+ <p>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-ok.html;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-ok.html;ss">with v.w.o</a> -
+ <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-ok.html">view</a>:
+ HTML5 sample document.</p>
+
+
<h5>ISO-HTML Document Type support test</h5>
<p>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/iso-html.html;ss">validate</a> -
@@ -516,6 +524,14 @@
sample HTML 4 document using the (valid, but problematic) shorttags features</p>
+ <h5>Test for warning output from HTML5 parser</h5>
+ <p>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-warning.html;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-warning.html;ss">with v.w.o</a> -
+ <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-warning.html">view</a>:
+ sample HTML5 document using a construct that should pass checking, with a warning output.</p>
+
+
<h4 id="appc">Valid XHTML 1.0 documents not conforming to HTML compatibility Guidelines</h4>
<p></p>
@@ -623,6 +639,30 @@
XHTML1, bogus attribute</p>
+ <h5>HTML5 document with tokenizer error (precise locator)</h5>
+ <p>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-precise-error.html;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-precise-error.html;ss">with v.w.o</a> -
+ <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-precise-error.html">view</a>:
+ HTML5 document with tokenizer error (precise locator)</p>
+
+
+ <h5>HTML5 document with Tree builder (range locator)</h5>
+ <p>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-range-error.html;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-range-error.html;ss">with v.w.o</a> -
+ <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-range-error.html">view</a>:
+ HTML5 document with Tree builder (range locator)</p>
+
+
+ <h5>HTML5 document with bogus attribute (should have an error explanation)</h5>
+ <p>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-error-explanation.html;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-error-explanation.html;ss">with v.w.o</a> -
+ <a href="http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-error-explanation.html">view</a>:
+ HTML5 document with bogus attribute (should have an error explanation)</p>
+
+
<h5>XHTML1, bogus element (uppercase A element not in DTD), tends to cascade errors about each attribute</h5>
<p>
<a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/uppercase_element.xhtml;ss">validate</a> -
diff --git a/misc/testsuite/catalog.xml b/misc/testsuite/catalog.xml
index dee4bcb..1bc7b91 100644
--- a/misc/testsuite/catalog.xml
+++ b/misc/testsuite/catalog.xml
@@ -90,6 +90,16 @@
</test>
<test>
+ <dc:title>HTML5 support test</dc:title>
+ <uri>http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-ok.html</uri>
+ <expect>
+ <Validity>Pass</Validity>
+ </expect>
+ <html:p>HTML5 sample document.</html:p>
+ </test>
+
+
+ <test>
<dc:title>ISO-HTML Document Type support test</dc:title>
<uri>http://qa-dev.w3.org/wmvs/HEAD/dev/tests/iso-html.html</uri>
<expect>
@@ -511,6 +521,17 @@
</expect>
<html:p>sample HTML 4 document using the (valid, but problematic) shorttags features</html:p>
</test>
+
+ <test>
+ <dc:title>Test for warning output from HTML5 parser</dc:title>
+ <uri>http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-warning.html</uri>
+ <expect>
+ <Validity>Pass</Validity>
+ <NumWarnings>yes</NumWarnings>
+ </expect>
+ <html:p>sample HTML5 document using a construct that should pass checking, with a warning output.</html:p>
+ </test>
+
</collection>
<collection id="appc">
@@ -629,6 +650,32 @@
<Validity>Fail</Validity>
</expect>
</test>
+
+ <test>
+ <uri>http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-precise-error.html</uri>
+ <html:p>HTML5 document with tokenizer error (precise locator)</html:p>
+ <expect>
+ <Validity>Fail</Validity>
+ </expect>
+ </test>
+
+ <test>
+ <uri>http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-range-error.html</uri>
+ <html:p>HTML5 document with Tree builder (range locator)</html:p>
+ <expect>
+ <Validity>Fail</Validity>
+ </expect>
+ </test>
+
+ <test>
+ <uri>http://qa-dev.w3.org/wmvs/HEAD/dev/tests/html5-error-explanation.html</uri>
+ <html:p>HTML5 document with bogus attribute (should have an error explanation)</html:p>
+ <expect>
+ <Validity>Fail</Validity>
+ </expect>
+ </test>
+
+
<test>
<uri>http://qa-dev.w3.org/wmvs/HEAD/dev/tests/uppercase_element.xhtml</uri>