You are viewing information archived from Mozilla.org on 2015-08-05.

ListBox Test Cases


Single Selection




Multiple Selections
press Ctrl or Shift may select multiple Items

Disabled





In the Accessible Explorer(MS), Listbox object's tree model is
+ Window


+ List





List-Item1





List-Item2





List-Item3


+ VScrollBar





Button (One row up)





Button (One row down)





Location indicator





Button (Page up)





Button (Page down)



+ HScrollBar(like VScrollBar)





Button (One collum right)



And List-Item has action "click" to select, Scollbar can be scrolled by click Buttons which are it's children.

In AT-poke, Listbox object's tree model is
+ AAA


+ BBB





List-Item1





List-Item2





List-Item3


Interface Feature tested Steps Expected Result
Objects

getName
getDescription
getRole
getAttributes
getParent







1. Start AT-poke Type/Name/Value/ Role/ State/should be displayed on AT-poke window

AccessibleComponent Interface





getPosition
getSize
getLayer
getMDIZOrder






2. In At-poke, check object's position and size, Layer, MDI-Z-order







grabFocus 3. Click on the Grab focus button in AT-poke Start simple-at, focus event will be received



AccessibleAction Interface

getNActions
getName
getDescription
getKeyBinding






**8. In At-poke, see every action's Name/Description/KeyBinding
(maybe currently objects have no keybinding)




doAction

9. With items, do action "select" the selected item's background should turn to blue

AccessibleSelection Interface







getNSelectedChildren

**11. With Listbox2, select 4 items In AT-poke, the number of selected children should be 4

getSelectedChild

**12. In AT-poke, insert one selected child's index which is range from 0 to getNSelectedChildren-1





isChildSelected

**13. In AT-poke, input a index in the standard Accessible container's list of children, the same as in the method Accessible_getIndexInParent ()
(with Listbox2, that is to say, the range is from 0 to 27 )






selectChild

**14. With Listbox2, input a index that is in the all Accesible objects list, the same meaning as in the method Accessible_getChildAtIndex ()



select the specified item

deselectSelectedChild

**15. In AT-poke, input a index that is in the selected-children list, same as in step 12

deselect the specified item

clearSelection
selectAll
16. In AT-poke, select "AAA" from left side, then click on the button "SelectAll" "Clear" from right side



Event





17. Start simple-at, and click on the first listbox

Output of terminal :
focus: event from option1






18. move mouse on another list item

Output of terminal :
focus: event
selection_changed event received





Maintained by Mindy Liu
Last modified 2002-08-19