|
3 | 3 | <head>
|
4 | 4 | <meta charset="utf-8">
|
5 | 5 | <title>longdesc-tests</title>
|
| 6 | + <style>nav ul, nav li { display:inline} </style> |
6 | 7 | </head>
|
7 | 8 | <body>
|
8 | 9 | <h1>Longdesc tests</h1>
|
9 | 10 | <p>Some tests proposed by Charles McCathie Nevile for the <a href="http://www.w3.org/TR/html-longdesc">HTML Image Description Extension</a> specification. All tests are ©chaals, and are made available under the terms of the <a href="http://www.w3.org/Consortium/Legal/copyright-software">W3C software license</a>.</p>
|
10 |
| - |
| 11 | +<nav> |
| 12 | + <ul> |
| 13 | + <li><a href="#mult">Multifunction tests</a></li> |
| 14 | + <li><a href="#auto">Automated browser tests</a></li> |
| 15 | + <li><a href="#valid">Validation/Repair Tool tests</a></li> |
| 16 | + <li><a href="#results">Test Results</a></li> |
| 17 | + <li><a href="#support">About the supporting files</a></li> |
| 18 | + </ul> |
| 19 | +</nav> |
11 | 20 | <h2>Multifunction tests</h2>
|
12 | 21 |
|
13 | 22 | <p>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</p>
|
14 | 23 |
|
15 |
| -<p>The same tests can be used to determine whether in various scenarios the User Agent enables the user to access the description, and whether the description can be found through system accessibility APIs.</p> |
| 24 | +<p>The same tests can be used to determine whether </p> |
| 25 | +<ul> |
| 26 | + <li>the User Agent informs the user that there is a description;</li> |
| 27 | + <li>the User Agent enables the user to access the description; and</li> |
| 28 | + <li>the description is communicated through system accessibility APIs.</li></ul> |
16 | 29 |
|
17 | 30 | <h3>Longdesc value as data:URI</h3>
|
18 | 31 |
|
@@ -56,14 +69,20 @@ <h3>Longdesc value as external URI in presence of a <code>base</code> element</h
|
56 | 69 | <h3>longdesc inside an iframe</h3>
|
57 | 70 | <p>The test <a href="iframe-discoverability.html">Image in an iframe with External Description</a> loads an an image with a long description from a separate document using an <code>iframe</code>. 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.</p>
|
58 | 71 |
|
59 |
| -<h2>Other tests</h2> |
| 72 | +<h2>Automated browser tests</h2> |
60 | 73 |
|
61 | 74 | <p><a href="reflected-changing-longdesc.html">Longdesc value updated by javascript</a> tests whether the HTML attribute reflects changes made by javascript. To pass, the browser must be redirected to <a href="pass.html">pass.html</a> 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.</p>
|
62 | 75 |
|
| 76 | +<h2>Validation tool tests</h2> |
| 77 | + |
63 | 78 | <p>The test <a href="invalid-longdescription.html">Invalid long description (plain text)</a> contains an invalid long description and can be used to test User Agent and validation tool handling. <strong>Note</strong> Handling of invalid longdescs by user agents is currently undefined.</p>
|
64 | 79 | <p>The test <a href="empty-longdesc.html">Invalid long description (empty attribute)</a> contains an invalid long description and can be used to test User Agent and validation tool handling. <strong>Note</strong> Handling of invalid longdescs by user agents is currently undefined.</p>
|
65 | 80 | <p>The test <a href="fail-fragment-pointer.html">Invalid long description fragment (the target is an empty element)</a> contains a pointer to <a href="fail-fragment-pointer.html">an invalidly marked long description as a fragment of a document</a> and can be used to test validation tool handling.</p>
|
66 | 81 |
|
| 82 | +<h2>Results</h2> |
| 83 | + |
| 84 | +Preliminary <a href="test-results.html">test results</a> are available for a handful of platforms. Further results are very welcome! |
| 85 | + |
67 | 86 | <h2>Supporting files</h2>
|
68 | 87 |
|
69 | 88 | <p>The following files are used to make one or more of the tests work:</p>
|
|
0 commit comments