Sc1 1 1 Longdesc

Created by: Frank Berker

Description

This test checks the sufficient provision of a long text description for non-text content using the longdesc attribute. This test doesn’t check the accessibility of a page referenced to from the longdesc attribute and this page must be checked separately.

Background

Assumptions

Test properties

Property Value
Test name Proper use of longdesc
Success Criterion 1.1.1 Non-text Content
Test mode Semi-automatic
Test environment Rendered page
Test subject Web page state
User expertise and skills No prior knowledge
User profile Requires sight

Test procedure

Selector

Test mode: automatic

//img[@longdesc]

Step 1

Test mode: automatic

Check if the longdesc attribute value is a valid URL

if yes, continue with [step 2][#step-2]

else, return

Outcome Failed
Testcase SC1-1-1-longdesc
ID SC1-1-1-longdesc-fail1
Error LONGDESC attribute value is not a valid URL

Step 2

Test mode: automatic

Check if the resource referenced in the longdesc attribute value exists

if yes, continue with [step 3][#step-3]

else, return

Outcome Failed
Testcase SC1-1-1-longdesc
ID SC1-1-1-longdesc-fail2
Error LONGDESC reference does not exist
Info The URL given as LONGDESC value was not retrievable.

Step 3

Test mode: automatic

Concatenate the results of Text Alternative Computation Algorithm run on the element and assign it to variable T1.

User Input Question:

Property Value
Presented item Image with T1 and the content of the page referenced by the longdesc at the referenced anchor point (if applicable)
Question Does the alternative provide an extended description of the image additionally to T1?
Help If the images contribute meaning to the page or provide any functionality or convey information additional to the pages text, this must be described. The alternative may be an entire page. The main content of which should provide the description.
Requir If no, could you suggest an alternative, which would sufficiently describe the image?
Requires context yes
Requires Interaction yes

if yes, return

Outcome Passed
Testcase SC1-1-1-longdesc
ID SC1-1-1-longdesc-pass1

else, return

Outcome Failed
Testcase SC1-1-1-longdesc
ID SC1-1-1-longdesc–fail3
Error Long description not sufficiently descriptive.
Info Collection of repair suggestions