Test Suites To Test HTML Elements For Accessiblity
Approach:
The Test Cases are written in JavaScript and HTML. Below table shows the test case.
NOTE: Before executing the test cases be sure to add the following line to your prefs.js file.
user_pref("signed.applets.codebase_principal_support", true);
The test cases can be run independently or automated.
You can run the test cases independently by clicking on the Test Case in the below table. The test results will display automatically after a few seconds.
HTML Element
|
Test Cases
|
Features Tested
|
Anchor |
TestHyperLink_1.html | nsIAccessibleHyperLink::anchors nsIAccessibleHyperLink::getURI() nsIAccessibleHpyerLink::getObject() nsIAccessibleHyperLink::isValid() |
TestHyperText_1.html
|
nsIAccessibleHperText::links nsIAccessibleHperText::getLink() nsIAccessibleHperText::getLinkIndex() |
|
Img |
TestHyperLink_2.html
|
nsIAccessibleHyperLink::anchors nsIAccessibleHyperLink::getURI() nsIAccessibleHpyerLink::getObject() nsIAccessibleHyperLink::isValid() |
TestHyperText_2.html
|
nsIAccessibleHperText::links nsIAccessibleHperText::getLink() nsIAccessibleHperText::getLinkIndex() |
|
Input |
TestEditableText_1.html
|
nsIAccssibleEditableText::setTextContents() |
TestEditableText_2.html
|
nsIAccssibleEditableText::insertText() |
|
TestEditableText_3.html
|
nsIAccssibleEditableText::deleteText() |
|
TestEditableText_4.html
|
nsIAccssibleEditableText::copyText() nsIAccssibleEditableText::pasteText() |
|
TestEditableText_5.html
|
nsIAccssibleEditableText::cutText() nsIAccssibleEditableText::pasteText() |
|
TestText_1.html
|
const nsAccessibleTextBoundary BOUNDARY_CHAR = 0 nsIAccessibleText::caretOffset nsIAccessibleText::charaterCount nsIAccessibleText::getText() nsIAccessibleText::getTextAfterOffset() nsIAccessibleText::getTextAtOffset() nsIAccessibleText::getCharacterAtOffset() nsIAccessibleText::getTextBeforeOffset() |
|
TestTest_2.html
|
const nsAccessibleTextBoundary BOUNDARY_WORD_START
= 1 const nsAccessibleTextBoundary BOUNDARY_WORD_END = 2 nsIAccessibleText::getTextAfterOffset() nsIAccessibleText::getTextAtOffset() nsIAccessibleText::getTextBeforeOffset() |
|
TestTest_3.html
|
const nsAccessibleTextBoundary BOUNDARY_LINE_START
= 5 const nsAccessibleTextBoundary BOUNDARY_LINE_END = 6 nsIAccessibleText::getTextAfterOffset() nsIAccessibleText::getTextAtOffset() nsIAccessibleText::getTextBeforeOffset() |
|
TestTest_4.html
|
nsIAccessibleText::getSelectionBounds() nsIAccessibleText::setSelectionBounds() nsIAccessibleText::addSelection() nsIAccessibleText::removeSelection() |
|
P |
TestText_1.html
|
const nsAccessibleTextBoundary BOUNDARY_CHAR =
0 nsIAccessibleText::caretOffset nsIAccessibleText::charaterCount nsIAccessibleText::getText() nsIAccessibleText::getTextAfterOffset() nsIAccessibleText::getTextAtOffset() nsIAccessibleText::getCharacterAtOffset() nsIAccessibleText::getTextBeforeOffset() |
TestText_2.html
|
const nsAccessibleTextBoundary BOUNDARY_WORD_START
= 1 const nsAccessibleTextBoundary BOUNDARY_WORD_END = 2 nsIAccessibleText::getTextAfterOffset() nsIAccessibleText::getTextAtOffset() nsIAccessibleText::getTextBeforeOffset() |
|
TestText_3.html
|
const nsAccessibleTextBoundary BOUNDARY_LINE_START
= 5 const nsAccessibleTextBoundary BOUNDARY_LINE_END = 6 nsIAccessibleText::getTextAfterOffset() nsIAccessibleText::getTextAtOffset() nsIAccessibleText::getTextBeforeOffset() |
|
TestText_4.html
|
nsIAccessibleText::getSelectionBounds() nsIAccessibleText::setSelectionBounds() nsIAccessibleText::addSelection() nsIAccessibleText::removeSelection() |
|
Select |
TestSelection_1.html
|
nsIAccessibleSelection::selectionCount nsIAccessibleSelection::addSelection() nsIAccessibleSelection::isChildSelected() nsIAccessibleSelection::refSelection() nsIAccessibleSelection::selectAllSelection() |
TestSelection_2.html
|
nsIAccessibleSelection::selectionCount nsIAccessibleSelection::isChildSelected() nsIAccessibleSelection::removeSelection() |
|
TestSelection_3.html
|
nsIAccessibleSelection::selectionCount nsIAccessibleSelection::isChildSelected() nsIAccessibleSelection::clearSelection() |
|
Table |
TestTable_1.html |
nsIAccessibleTable::caption nsIAccessibleTable::summary nsIAccessibleTable::columns nsIAccessibleTable::columnHeader nsIAccessibleTable::rows nsIAccessibleTable::getIndexAt() |
TestTable_2.html
|
nsIAccessibleTable::getIndexAt() nsIAccessibleTable::getColumknAtIndex() nsIAccessibleTable::getRowAtIndex() nsIAccessibleTable::getColumnExtentAt() nsIAccessibleTable::getRowExtentAt() |
|
TestTable_3.html
|
nsIAccessibleTable::getSelectedColumns() nsIAccessibleTable::isColumnSelected() nsIAccessibleTable::isRowSelected() nsIAccessibleTable::isCellSelected() |
|
TestTable_4.html
|
nsIAccessibleTable::getSelectedRows() nsIAccessibleTable::isColumnSelected() nsIAccessibleTable::isRowSelected() nsIAccessibleTable::isCellSelected() |
|
TestTable_5.html
|
nsIAccessibleTable::getSelectedColumns() nsIAccessibleTable::getSelectedRows() nsIAccessibleTable::isColumnSelected() nsIAccessibleTable::isRowSelected() nsIAccessibleTable::isCellSelected() |
Maintained by: Jessie Li
Last Updated on Sep 23, 2002