1 == Summary of tests for the text editor
3 This doesn't include all tests. Intended to be the "timeless core" of a text
4 editor widget that shouldn't change across forks.
10 draw word wrapping text
11 draw text wrapping within word
12 draw wrapping text containing non ascii
17 click takes margins into account
19 click on wrapping line
20 click on wrapping line takes margins into account
21 click on wrapping line
22 click on wrapping line rendered from partway at top of screen
23 click past end of wrapping line
24 click past end of wrapping line containing non ascii
25 click past end of word wrapping line
26 click below final line does nothing
30 move left to previous line
32 move right to next line
35 move to start of previous word
36 move to start of word on previous line
38 move past end of word on next line
40 skip past tab to previous word
41 skip multiple spaces to previous word
43 skip past tab to next word
44 skip multiple spaces to next word
47 insert first character
50 insert newline at start of line
52 backspace from start of final line
53 backspace past line boundary
54 backspace over selection
55 backspace over selection reverse
56 backspace over multiple lines
57 backspace to end of line
58 backspace to start of line
62 pagedown often shows start of wrapping line
63 pagedown can start from middle of long wrapping line
64 pagedown never moves up
65 down arrow moves cursor
66 down arrow scrolls down by one line
67 down arrow scrolls down by one screen line
68 down arrow scrolls down by one screen line after splitting within word
69 pagedown followed by down arrow does not scroll screen up
71 up arrow scrolls up by one line
72 up arrow scrolls up by one screen line
73 up arrow scrolls up to final screen line
74 up arrow scrolls up to empty line
76 pageup scrolls up by screen line
77 pageup scrolls up from middle screen line
78 enter on bottom line scrolls down
79 enter on final line avoids scrolling down when not at bottom
80 inserting text on final line avoids scrolling down when not at bottom
81 typing on bottom line scrolls down
82 left arrow scrolls up in wrapped line
83 right arrow scrolls down in wrapped line
84 home scrolls up in wrapped line
85 end scrolls down in wrapped line
86 position cursor on recently edited wrapping line
87 backspace can scroll up
88 backspace can scroll up screen line
91 select text using shift and cursor movement operations
92 select text using mouse
93 clicking to left of a line = start of line
94 clicking to right of a line = end of line
95 clicking above topmost line = top of screen
96 clicking below bottom-most line = bottom of screen
97 select text using mouse and shift
98 select text repeatedly using mouse and shift
99 cursor movement without shift resets selection
100 mouse click without shift resets selection
101 edit deletes selection
102 edit with shift key deletes selection
103 deleting selection may scroll
104 copy does not reset selection
106 cut without selection
107 paste replaces selection
118 undo restores selection