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

HyperText Test Cases

1. Jump to another location in the same page: Link to the end

2. Open in the same window: http://www.yahoo.com/

3. Open in a new window: http://www.mozilla.org


Interface

Feature tested Steps Expected Result
Objects

getName
getDescription
getRole......
getAttributes
getCharacterCount
getNLinks






1. Start AT-poke Name/Location/ Parent/ Role/ State/Link number should be displayed on AT-poke window

AccessibleText Interface addSelection **2. 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



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

Selected text range is changed

getSelection

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

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

Selection background resumed to white

getText

6. Check the contents in text field on AT-poke right pane

AT-poke can display the text correctly

getOffsetAtPoint
getTextBeforeOffset
getTextAfterOffset
getTextAtOffset




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




getCaretOffset

9. Check the contents in Caret field on AT-poke right pane



setCaretOffset **10. In AT-poke, input CaretOffset



*AccessibleEditableText Interface*

copyText
pasteText






AccessibleHypertext Interface

getLinkIndex **11. In AT-poke, input a specified character offset

The link's index will be shown on AT-poke window

getLink



**12. In AT-poke, input the index, get the Link's attributes

The Link's href/target etc. will be shown on AT-poke window
AccessibleHyperlink Interface



getNAnchors

**13. see 12

number of anchors shown on window

getIndexRange

**14. see 12

Get the starting and ending character offsets of the text range associated with a AccessibleHyperlink, in its originating AccessibleHypertext.

getURI

**15. In AT-poke, select anchor by index, get the Anchor's attributes

the URI string be shown on window

isValid



Events



16. Start simple-at, move caret via keyboard

Output of terminal : text_caret_moved event



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

Output of terminal : text_selection_changed event


Maintained by Mindy Liu
Last modified 2002-06-28




The end of the Test Case