1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39

content / test / data / accessibility / mac / selection / set-selection-textarea-expected.txt [blame]

// Select the 3rd word (AXSelectedTextMarkerRange).
text_range={anchor: {:3, 0, down}, focus: {:3, 45, down}}
marker_0={:3, 0, down}
marker_1={:3, 3, down}
marker_2={:3, 9, down}
marker_3={:3, 15, down}
marker_4={:3, 10, down}
target_selected_marker_range={anchor: {:3, 10, down}, focus: {:3, 15, down}}
textarea.AXSelectedTextMarkerRange={anchor: {:3, 10, down}, focus: {:3, 15, down}}
AXSelectedTextChanged on AXTextArea AXValue='The quick brown fox jumps over the lazy dog<newline>' AXTextSelectionDirection=AXTextSelectionDirectionUnknown AXTextSelectionGranularity=AXTextSelectionGranularityUnknown AXTextStateChangeType=AXTextStateChangeTypeSelectionMove
textarea.AXSelectedText='brown'
// Select 2nd word on the 2nd line (AXSelectedTextMarkerRange).
text_range={anchor: {:3, 0, down}, focus: {:3, 45, down}}
marker_0={:3, 0, down}
marker_1={:3, 15, down}
marker_2={:3, 19, down}
marker_3={:3, 25, down}
marker_4={:3, 20, down}
target_selected_marker_range={anchor: {:3, 20, down}, focus: {:3, 25, down}}
textarea.AXSelectedTextMarkerRange={anchor: {:3, 20, down}, focus: {:3, 25, down}}
AXSelectedTextChanged on AXTextArea AXValue='The quick brown fox jumps over the lazy dog<newline>' AXTextSelectionDirection=AXTextSelectionDirectionUnknown AXTextSelectionGranularity=AXTextSelectionGranularityUnknown AXTextStateChangeType=AXTextStateChangeTypeUnknown
textarea.AXSelectedText='jumps'
// Select text on the 1st line (AXSelectedTextRange).
textarea.AXSelectedTextRange={loc: 10, len: 5}
AXSelectedTextChanged on AXTextArea AXValue='The quick brown fox jumps over the lazy dog<newline>' AXTextSelectionDirection=AXTextSelectionDirectionUnknown AXTextSelectionGranularity=AXTextSelectionGranularityUnknown AXTextStateChangeType=AXTextStateChangeTypeUnknown
textarea.AXSelectedText='brown'
// select text on the 2nd line (AXSelectedTextRange).
textarea.AXSelectedTextRange={loc: 20, len: 5}
AXSelectedTextChanged on AXTextArea AXValue='The quick brown fox jumps over the lazy dog<newline>' AXTextSelectionDirection=AXTextSelectionDirectionUnknown AXTextSelectionGranularity=AXTextSelectionGranularityUnknown AXTextStateChangeType=AXTextStateChangeTypeUnknown
textarea.AXSelectedText='jumps'
// Put cursor after the 2nd word.
textarea.AXSelectedTextRange={loc: 10, len: 0}
AXSelectedTextChanged on AXTextArea AXValue='The quick brown fox jumps over the lazy dog<newline>' AXTextSelectionDirection=AXTextSelectionDirectionUnknown AXTextSelectionGranularity=AXTextSelectionGranularityUnknown AXTextStateChangeType=AXTextStateChangeTypeUnknown
// Force line break.
press Enter
// Select text on the 2nd line (fox).
textarea.AXSelectedTextRange={loc: 17, len: 3}
AXSelectedTextChanged on AXTextArea AXValue='The quick <newline>brown fox jumps over the lazy dog<newline>' AXTextSelectionDirection=AXTextSelectionDirectionUnknown AXTextSelectionGranularity=AXTextSelectionGranularityUnknown AXTextStateChangeType=AXTextStateChangeTypeUnknown
textarea.AXSelectedText='fox'