Button Test Cases
| Type or State | Buttons | 
|---|---|
| normal |  | 
| submit | |
| reset | |
| file | |
| disabled | |
| hidden | (The
hidden input is on this line.) | 
| image | 
| 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. | ||
| 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 | 
    Last modified 2002-08-19