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

Single line text input test cases

normal



With initial value



Password

If you type into the following box, input should be masked:



Date



Readonly



Disabled




Interface

Feature tested Steps Expected Result
Objects

getName
getDescription
getRole......
getAttributes
getCharacterExtents
getCharacterCount






1. Start AT-poke, search object named "A" "B" A and B's Name/Location/ Parent/ Role/ State/ should be displayed on AT-poke window

AccessibleComponent Interface



getPosition
getSize
getLayer
getMDIZOrder




2. In AT-poke window, check the values



grabFocus

3. In AT-poke, select "A" from left tree model, click on the Grab focus button at right side.
4. Click on the browser to enable the window


caret diaplays on "A"

AccessibleText Interface

setTextContents 5. In the AT-poke window, set the value of "A" A's content be updated

6. In the AT-poke window, change the value of "B"

B's content be updated

addSelection



**7. In AT-poke, set selection via input the offset of selection start and end position

Selected text's background will be changed to blue

setSelection



**8. In AT-poke, change selection via change the offset of selection start or end position

Selected text range is changed

getSelection

**9. In AT-poke, get Selection just set The startOffset and the endOffset of the Selection should display on the AT-poke window

removeSelection **10. In AT-poke, remove selection #1

Selection background resumed to white

getOffsetAtPoint
getText
getTextBeforeOffset
getTextAfterOffset
getTextAtOffset





**11. In AT-poke, get the offset of a special point
**12. Get Text via input the offset in AT-poke


AT-poke can display the text correctly

setCaretOffset
getCaretOffset




**13. In AT-poke, setCaretOffset
14. In AT-poke, getCaretOffset




AccessibleEditableText Interface





copyText
pasteText


15. Directly select a text string of "A" in browser,   select the object "A", press "copy" button in AT-poke,  locate the caret in other position, press "paste" button in AT-poke

paste to "A"

cutText
pasteText


16. Directly select a text string of "A" in browser,   select the object "A", press "cut" button in AT-poke, select the object "B",  press "paste" button in AT-poke

paste to "B"

deleteText

17. Directly select a text string of "A" in browser,   press "delete" button in AT-poke



insertText

**18.



Events



19. Start simple-at, move caret via keyboard or mouse

Output of terminal : text_caret_moved event received



20. Select text string via drag mouse or repeat step4,5,6,7 and watch the output of simple-at instead of at-poke

Output of terminal : text_selection_changed event received



21. Input some text string directly or repeat step12,13,14 and watch the output of simple-at instead of at-poke

Output of terminal : text_changed event received



Maintained by Mindy Liu

Last modified 2002-06-28