summaryrefslogtreecommitdiff
path: root/tests/test-bidi.c
Commit message (Collapse)AuthorAgeFilesLines
* Add more tests for move-visuallycursor-move-fixesMatthias Clasen2021-08-091-4/+48
| | | | | These cover more of the corner cases fixed in the previous commits.
* Fix corner cases around line endsMatthias Clasen2021-08-091-0/+4
| | | | | | | | | | pango_layout_index_to_line_and_extents needs to return a run rect even if the line has no non-empty runs. Failing to do so was causing cursors at the end of lines to have a height of 0 or 1, which is not what we want. Add a testcase.
* Adapt testsline-height-attributeMatthias Clasen2021-08-081-2/+10
| | | | | | Now that we are using run extents for cursor positions, the vertical extents aren't necessarily constant across a line anymore. Adapt our assertions.
* Add multi-line tests for move-cursorMatthias Clasen2021-08-081-0/+63
| | | | | Test the line end handling of pango_layout_move_cursor_visually.
* Reimplement pango_layout_move_cursor_visuallyMatthias Clasen2021-08-081-1/+1
| | | | | | | | Reimplement this function based on pango_layout_get_cursor_pos. This is a bit less efficient, but it fixes cases where the old implementation would get stuck. Fixes: #587, #585, #157
* Add tests for pango_layout_move_cursor_visuallyMatthias Clasen2021-08-081-9/+14
| | | | Some of these currently fail.
* Add tests for pango_layout_move_cursor_visuallybidi-adventuresMatthias Clasen2021-08-051-0/+183
| | | | Some of these currently fail.
* Add some more bidi embedding level testsMatthias Clasen2021-08-041-0/+2
|
* tests: Move bidi tests to their own filemore-test-coverage2Matthias Clasen2021-07-061-0/+166
Also add some tests for bidi embedding levels.