Some tests proposed by Charles McCathie Nevile for the HTML Image Description Extension specification. All tests are ©chaals, and are made available under the terms of the W3C software license.
There are tests for descriptions under different combinations of circumstances - images included "normally", as data: URIs, or missing, with the descriptions internal or external to the page, as a data: URI, or in a location only reachable by taking into account the base element
The same tests can be used to determine whether
base
elementThe test Image in an iframe with External Description loads an an image with a long description from a separate document using an iframe
. To pass, the tester must be able to access the "Longdesc test Pass Page" which consists of the word "Pass" in a heading level 1 followed by a long description of the image.
Longdesc value updated by javascript tests whether the HTML attribute reflects changes made by javascript. To pass, the browser must be redirected to pass.html which has the word "Pass" as a heading followed by a description of the image. Displaying the "Longdesc test Fail Page" would indicate a failure of this test. This test requires javascript to function.
The test Invalid long description (plain text) contains an invalid long description and can be used to test User Agent and validation tool handling. Note Handling of invalid longdescs by user agents is currently undefined.
The test Invalid long description (empty attribute) contains an invalid long description and can be used to test User Agent and validation tool handling. Note Handling of invalid longdescs by user agents is currently undefined.
The test Invalid long description fragment (the target is an empty element) contains a pointer to an invalidly marked long description as a fragment of a document and can be used to test validation tool handling.
The following files are used to make one or more of the tests work:
base
element is used)