Warning:
This wiki has been archived and is now read-only.
SC1-1-1-long-text-alternative
This test case belongs to 1.1.1 Non-text Content
Status
Draft
Contents
Description
This test checks the sufficient provision of a long text description for non-text content.
Background
- ARIA15: Using aria-describedby to provide descriptions of images
- G73: Providing a long description in another location with a link to it that is immediately adjacent to the non-text content
- G74: Providing a long description in text near the non-text content, with a reference to the location of the long description in the short description
- G92: Providing long description for non-text content that serves the same purpose and presents the same information
- H45: Using longdesc
- H53: Using the body of the object element
Assumptions
- The proper provision of a short text alternative is checked in SC1-1-1-text-alternative
- It is not checked for references to long text descriptions within short text alternatives or long textual descriptions in adjacent text
- It is not checked for H53: Using the body of the object element, as the test for this technique is included in SC1-1-1-text-alternative
Test properties
| Property | Value |
|---|---|
| Success Criterion | 1.1.1 Non-text Content |
| Test mode | SemiAuto |
| Test environment | rendered page |
| Test subject | web page state |
Test procedure
Selector
earl:automatic
//*[self::img[@longdesc] or self::img[@aria-describedby]]
Step 1
earl:automatic
Check if the longdesc attribute value is a valid URL
if yes continue with #Step 2
else return
| Property | Value |
|---|---|
| TestCase | SC1-1-1-img-longdesc |
| Identifier | SC1-1-1-img-longdesc-fail1 |
| Outcome | failed |
| ErrorMessage | LONGDESC attribute value is not a valid URL |
| Pointer | position |
| Info |
Step 2
earl:automatic
Check if the resource referenced in the longdesc attribute value exists
if yes, continue with #Step 3
else return
| Property | Value |
|---|---|
| TestCase | SC1-1-1-img-longdesc |
| Identifier | SC1-1-1-img-longdesc-fail2 |
| Outcome | failed |
| ErrorMessage | LONGDESC reference does not exist. |
| Pointer | position |
| Info | The URL given as LONGDESC value was not retrievable. |
Step 3
earl:manual
User input question
Item presented to the user: Image with the corresponding long description
Question: Does the text sufficiently describe the image?
Answer options: "yes/no"
Help text: If the images contribute meaning to the page or provide any functionality or convey information additional to the pages text, this must be described.
Repair suggestion: If no, could you suggest a sufficient textual alternative?
Properties of the test step:
- context-sensitive = yes
- user interaction (with the web content) required = yes
if yes, return
| Property | Value |
|---|---|
| TestCase | SC1-1-1-img-longdesc |
| Identifier | img-longdesc-pass1 |
| Outcome | passed |
| Pointer | position |
| Info |
else return
| Property | Value |
|---|---|
| TestCase | SC1-1-1-img-longdesc |
| Identifier | SC1-1-1-img-longdesc–fail3 |
| Outcome | failed |
| ErrorMessage | Long description not sufficiently descriptive. |
| Pointer | position |
| Info |