Test Suite Index
This small test suite has been built to test the link checkers at W3C,
but could be used for any tool used to either check links in HTML documents,
spiders, or miscellaneous Web User-Agents.
This test suite is work in progress. Please submit any issue or idea to the
public mailing-list public-qa-dev@w3.org
Base URI and Content-Location Tests
Does the checker respect base href and content-location info? Does it report broken links based on those?
test base URI with BASE href elt
tested document
relative link goes 404 if BASE href element not parsed
EXPECTED: relative link goes 200 if OK - link checker finds no error
test base URI with HTTP Content-Location
tested document
relative link goes 404 if HTTP Content-Location not parsed
EXPECTED: relative link goes 200 if OK - link checker finds no error
test base URI with BASE href elt and Content-Location
tested document
with both BASE href elt and HTTP Content-Location
href takes precedence http://www.w3.org/TR/html401/struct/links.html#h-12.4.1
relative link goes 404 if neither BASE nor Content-Location respected
relative link goes 403 if HTTP Content-Location respected instead of BASE
EXPECTED: relative link goes 200 if OK - link checker finds no error
test base URI with relative BASE href (forbidden)
tested document
This document has a bogus BASE href value. Per the spec:
This attribute specifies an absolute URI that acts as the base URI for resolving relative URIs.
test base URI with BASE href elt and Content-Base
tested document
with both BASE href elt and HTTP Content-Base
href takes precedence http://www.w3.org/TR/html401/struct/links.html#h-12.4.1
relative link goes 404 if neither BASE nor Content-Base respected
relative link goes 403 if HTTP Content-Base respected instead of BASE
EXPECTED: relative link goes 200 if OK - link checker finds no error
HTML 4.01 URI attribute values Tests
Testing whether the checker catches 404 for all attributes values set to %URI type in HTML 4.01
test HTML A href (control)
tested document
A href OK
EXPECTED: link checker passes
test HTML A href (404)
tested document
A href 404
EXPECTED: link checker throws error
test HTML BASE href (control)
tested document
test HTML BASE href (404)
tested document
BASE href 404
EXPECTED: link checker does not throw error (not dereferenced)
test HTML BODY background (control)
tested document
test HTML BODY background (404)
tested document
BODY background 404
EXPECTED: link checker throws error
test HTML BLOCKQUOTE cite (control)
tested document
test HTML BLOCKQUOTE cite (404)
tested document
BLOCKQUOTE cite 404
EXPECTED: link checker throws error
test HTML DEL cite (control)
tested document
test HTML DEL cite (404)
tested document
DEL cite 404
EXPECTED: link checker throws error
test HTML FRAME longdesc (control)
tested document
OK frameset document with longdesc dereferencing (control test)
test HTML FRAME longdesc (404)
tested document
Frameset document with a frame longdesc dereferencing into a 404.
EXPECTED: link checker throws error
test HTML FRAME src (control)
tested document
OK frameset document with src dereferencing (control test)
test HTML FRAME src (404)
tested document
Frameset document with a frame src dereferencing into a 404.
EXPECTED: link checker throws error
test HTML HEAD profile (control)
tested document
test HTML HEAD profile (404)
tested document
test HTML IFRAME longdesc (control)
tested document
test HTML IFRAME longdesc (404)
tested document
test HTML IFRAME src (control)
tested document
test HTML IFRAME src (404)
tested document
test HTML IMG longdesc (control)
tested document
test HTML IMG longdesc (404)
tested document
test HTML IMG src (control)
tested document
test HTML IMG src (404)
tested document
test HTML INPUT src (control)
tested document
INPUT src OK
EXPECTED: link checker throws error
test HTML INPUT src (404)
tested document
INPUT src 404
EXPECTED: link checker throws error
test HTML INS cite (control)
tested document
test HTML INS cite (404)
tested document
INS cite 404
EXPECTED: link checker throws error
test HTML LINK href (control)
tested document
test HTML LINK href (404)
tested document
test HTML Q cite (control)
tested document
test HTML Q cite (404)
tested document
Q cite 404
EXPECTED: link checker throws error
test HTML SCRIPT src (control)
tested document
test HTML SCRIPT src (404)
tested document
Testing whether the checker reports redirects
test reporting HTTP 300 (optional)
tested document
test reporting HTTP 301 (optional)
tested document
test reporting HTTP 302 (optional)
tested document
test reporting HTTP 307 (optional)
tested document
HTTP Error codes test
Testing whether the checker reports all possible kinds of HTTP errors (4xx and 5xx)
test reporting HTTP 400
tested document
test reporting HTTP 401
tested document
test reporting HTTP 402
tested document
test reporting HTTP 403
tested document
test reporting HTTP 404 (DNS error)
tested document
test reporting HTTP 404
tested document
test reporting HTTP 405
tested document
test reporting HTTP 406
tested document
test reporting HTTP 407
tested document
test reporting HTTP 408
tested document
test reporting HTTP 409
tested document
test reporting HTTP 410
tested document
test reporting HTTP 411
tested document
test reporting HTTP 412
tested document
test reporting HTTP 413
tested document
test reporting HTTP 414
tested document
test reporting HTTP 415
tested document
test reporting HTTP 416
tested document
test reporting HTTP 417
tested document
test reporting HTTP 500
tested document
test reporting HTTP 501
tested document
test reporting HTTP 502
tested document
test reporting HTTP 503
tested document
test reporting HTTP 504
tested document
test reporting HTTP 505
tested document