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.



Button Test Cases

Type or State
Buttons
normal

submit

reset

The button below has a type of "reset"; click it to reset this form after entering some text in the text control box below.

file

disabled

hidden
(The hidden input is on this line.)
image

The following line contains an image that will submit this form when clicked.




Interface Feature tested Steps Expected Result
Objects getName
getDescription
getRole......
getAttributes
getCharacterCount

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


getExtents
contains

**2. In AT-poke, get the bounding box of Button with two coordinate systems (e.g. CSPI_COORD_TYPE_WINDOW, CSPI_COORD_TYPE_SCREEN)

**3. In AT-poke, input two points(one is in bounding box, one is out), and choose right coordinate system, query whether Button contains a particular point.

get correct result
getPosition
getSize
4. In At-poke right pane, get the Position and Size

getLayer
getMDIZOrder
5. In AT-poke right pane, get the Layer and MDI-Z-Order

grabFocus
6. In AT-poke, select one button's (B1:type here) item from the left tree model, click on the Grab focus button at right side.
  • The correct button changes it's appearence.
  • Click on the browser to enable the window, and then press "Enter", dialog opens "click on the button 'Type here'"
  • Add a "FOCUSED" state to states
  • Start simple-at, focus event will receive
  • AccessibleAction Interface getNActions
    7. In At-poke Actions tab, query the number of Actions surported
    getName
    getDescription
    getKeyBinding
    8. In At-poke Actions tab, see every action's Name/Description/KeyBinding


    doAction
    9. press dialog opens "click on the button 'Type here'"
    Events

    10. Start simple-at, and click on the first button "B1" directly with mouse
    Output of simple-at:
    focus: event from B1
    object:children-changed event received
    object:visible-data-changed event received
    event state_changed


    Maintained by Mindy Liu
    Last modified 2002-08-19