You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



Test Suites To Test XUL Elements For Accessiblity


Approach:
The Test Cases are written in JavaScript and XUL. Below table shows the test cases and features tested.

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.

xul Element
Test Cases
Features Tested
Textbox




TestEditableText_1.xul
nsIAccssibleEditableText::setTextContents()
TestEditableText_2.xul
nsIAccssibleEditableText::insertText()
TestEditableText_3.xul
nsIAccssibleEditableText::deleteText()
TestEditableText_4.xul
nsIAccssibleEditableText::copyText()
nsIAccssibleEditableText::pasteText()
TestEditableText_5.xul
nsIAccssibleEditableText::cutText()
nsIAccssibleEditableText::pasteText()
Description


TestText_1.xul
const nsAccessibleTextBoundary BOUNDARY_CHAR = 0
nsIAccessibleText::caretOffset
nsIAccessibleText::charaterCount
nsIAccessibleText::getText()
nsIAccessibleText::getTextAfterOffset()
nsIAccessibleText::getTextAtOffset()
nsIAccessibleText::getCharacterAtOffset()
nsIAccessibleText::getTextBeforeOffset()
TestText_2.xul
const nsAccessibleTextBoundary BOUNDARY_WORD_START = 1
const nsAccessibleTextBoundary BOUNDARY_WORD_END = 2
nsIAccessibleText::getTextAfterOffset()
nsIAccessibleText::getTextAtOffset()
nsIAccessibleText::getTextBeforeOffset()
TestText_3.xul
const nsAccessibleTextBoundary BOUNDARY_LINE_START = 5
const nsAccessibleTextBoundary BOUNDARY_LINE_END = 6
nsIAccessibleText::getTextAfterOffset()
nsIAccessibleText::getTextAtOffset()
nsIAccessibleText::getTextBeforeOffset()
TestText_4.xul
nsIAccessibleText::getSelectionBounds()
nsIAccessibleText::setSelectionBounds()
nsIAccessibleText::addSelection()
nsIAccessibleText::removeSelection()
Menulist


TestMenu_1.xul
nsIAccessibleSelection::selectionCount
nsIAccessibleSelection::addSelection()
nsIAccessibleSelection::isChildSelected()
nsIAccessibleSelection::refSelection()
nsIAccessibleSelection::selectAllSelection()
TestMenu_2.xul
nsIAccessibleSelection::selectionCount
nsIAccessibleSelection::isChildSelected()
nsIAccessibleSelection::removeSelection()
TestMenu_3.xul
nsIAccessibleSelection::selectionCount
nsIAccessibleSelection::isChildSelected()
nsIAccessibleSelection::clearSelection()
Listbox


TestListbox_1.xul
nsIAccessibleSelection::selectionCount
nsIAccessibleSelection::addSelection()
nsIAccessibleSelection::isChildSelected()
nsIAccessibleSelection::refSelection()
nsIAccessibleSelection::selectAllSelection()
TestListbox_2.xul
nsIAccessibleSelection::selectionCount
nsIAccessibleSelection::isChildSelected()
nsIAccessibleSelection::removeSelection()
TestListbox_3.xul
nsIAccessibleSelection::selectionCount
nsIAccessibleSelection::isChildSelected()
nsIAccessibleSelection::clearSelection()
Tree






TestTreeForSelect_1.xul
nsIAccessibleSelection::selectionCount
nsIAccessibleSelection::addSelection()
nsIAccessibleSelection::isChildSelected()
nsIAccessibleSelection::refSelection()
nsIAccessibleSelection::selectAllSelection()
TestTreeForSelect_2.xul
nsIAccessibleSelection::selectionCount
nsIAccessibleSelection::isChildSelected()
nsIAccessibleSelection::removeSelection()
TestTreeForSelect_3.xul
nsIAccessibleSelection::selectionCount
nsIAccessibleSelection::isChildSelected()
nsIAccessibleSelection::clearSelection()
TestTreeForTable_1.xul
nsIAccessibleTable::columns
nsIAccessibleTable::rows
nsIAccessibleTable::columnHeader()
TestTreeForTable_2.xul
nsIAccessibleTable::getIndexAt()
nsIAccessibleTable::getColumnAtIndex()
nsIAccessibleTable::getRowAtIndex()
nsIAccessibleTable::getColumnExtentAt()
nsIAccessibleTable::getRowExtentAt()
TestTreeForTable_3.xul
nsIAccessibleTable::getSelectedRows()
nsIAccessibleTable::isColumnSelected()
nsIAccessibleTable::isRowSelected()
nsIAccessibleTable::isCellSelected()
TestTreeForTable_4.xul
nsIAccessibleTable::getSelectedRows()
nsIAccessibleTable::getSelectedColumns()
nsIAccessibleTable::isColumnSelected()
nsIAccessibleTable::isRowSelected()
nsIAccessibleTable::isCellSelected()
Progressmeter
TestProgressmeter.xul
nsIAccessibleValue::maximumValue
nsIAccessibleValue::minimumValue
nsIAccessibleValue::currentValue
nsIAccessibleValue::setCurrentValue()

Maintained by: Jessie Li
Last Updated on July 1st, 2002