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

Text Area Test Cases





Normal





Nothing in the textarea



Readonly



Disabled




Interface Feature tested Steps Expected Result
Objects

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







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

AccessibleText Interface

setTextContents 2. In the AT-poke window, set the text of "TextArea1" content be updated

**addSelection



3. 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



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

Selected text range is changed

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

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

Selection background resumed to white

getOffsetAtPoint
getText
getTextBeforeOffset
getTextAfterOffset
getTextAtOffset





7. In AT-poke, get the offset of a special point
8. Get Text via input the offset in AT-poke


AT-poke can display the text correctly

setCaretOffset
getCaretOffset


**9. In AT-poke, setCaretOffset
10. In AT-poke, getCaretOffset




setTextContents

10. In AT-poke, set it's contents have multiple lines (more than 10 lines)

Scrollbar appears

**AccessibleAction Interface



11. Refresh AT-poke can do action "scroll" or "up""down"

AccessibleEditableText Interface



copyText
pasteText


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



paste to "TextArea1"

cutText
pasteText


13. Directly select a text string of "TextArea1" in browser,   select the object "TextArea1", press "cut" button in AT-poke, select the object "TextArea2",  press "paste" button in AT-poke



paste to "TextArea2"

deleteText

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

delete selected string

insertText







Events



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

Output of terminal : text_caret_moved event received



17. Select text string via drag mouse or repeat step3,4,5,6 and watch the output of simple-at instead of at-poke

Output of terminal : text_selection_changed event received



18. 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