Warning:
This wiki has been archived and is now read-only.
SC4-1-2-frame
Contents
Description
This test case checks that frames and iframes have a none-empty title attribute
Background
Assumptions
no known assumptions
Test properties
| Property | Possible values |
|---|---|
| Success Criterion | 4.1.2 Name, Role, Value |
| Test mode | automatic |
| Test environment | HTML source |
| Test subject | single web page |
Test procedure
Selector
earl:automatic
Select any frame or iframe element.
Step 1
earl:automatic
If the selected element does not have a title attribute, or a title with only non-empty text, return:
| Property | Value |
|---|---|
| TestCase | SC4-1-2-frame |
| Identifier | SC4-1-2-frame-fail1 |
| Outcome | failed |
| ErrorMessage | This {element-name} requires a title attribute, which must be descriptive the purpose of the frame |
| Pointer | position |
| Info |
Step 2
earl:manualPresent the iframe to the user, alongside the following question.
frame_title = The value of the title attribute of the frame
Question: Does the title {frame_title} identify the purpose of this frame?
Help text: Some frames only serve to show other pages. In those cases a website name is sufficient. Other times a frame is used to provide a specific function for it's nearby content. This should be clear from the title alone.
If yes, return:
| Property | Value |
|---|---|
| TestCase | SC4-1-2-frame |
| Identifier | SC4-1-2-frame-pass |
| Outcome | passed |
| Pointer | position |
| Info |
if no, return:
| Property | Value |
|---|---|
| TestCase | SC4-1-2-frame |
| Identifier | SC4-1-2-frame-fail2 |
| Outcome | failed |
| ErrorMessage | The purpose of the frame can not be identified from the title. |
| Pointer | position |
| Info |