summaryrefslogtreecommitdiff
path: root/tests/layouts
Commit message (Collapse)AuthorAgeFilesLines
* Add a test for keycap sequencesMatthias Clasen2021-05-052-0/+27
| | | | | | | This tests that we are not breaking items up in the middle of a keycap sequence. (cherry-picked from commit 6253c71b)
* Adjust expected test outputsMatthias Clasen2019-10-281-2/+2
| | | | The change is a harmless change in attribute list ordering.
* Pass the right attributes when shaping ellipsesMatthias Clasen2019-08-061-1/+1
| | | | | | | | | | | | | | | Now that we are splitting attributes into those that are relevant for itemization and shaping, we need to make sure to pass the right ones along when ellipsizing, or we risk picking a wildly mismatching font for the ellipsis run, causing things to shift vertically. Test included. Closes: https://gitlab.gnome.org/GNOME/pango/issues/397 Thanks to Jorge Luis Martinez Gomez for his help in tracking this down.
* layout: Flip the logic for attribute filteringMatthias Clasen2019-07-241-2/+2
| | | | | | | | | | | Instead of filtering out the attributes we don't want to influence itemization, explicitly filter only those attributes that we want to affect itemization. This makes us no longer break items for custom attributes, such as GtkTextAppearance attributes that are created by GtkTextLayout. Update expected output for layout testcases.
* Update expected test outputMatthias Clasen2019-07-201-13/+11
| | | | Recent changes changed breaks.
* Update expected test resultsMatthias Clasen2019-07-171-22/+20
| | | | | Some of the hyphenation fixes affected line breaks in the layout tests.
* Add another layout testMatthias Clasen2019-07-162-0/+51
| | | | | | | This tests a situation in which we had a crash until recently: Multiple paragraphs, with no-break attributes. We used to free the no-break attribute list prematurely.
* Add a layout test with soft hyphensMatthias Clasen2019-07-142-0/+42
|
* Some test updatesMatthias Clasen2019-07-143-22/+22
| | | | | Share the attribute printing code between all the tests, update expected output to match.
* Add a layout test with EmojiMatthias Clasen2019-06-032-0/+27
|
* Regenerate expected layout test outputMatthias Clasen2019-06-032-8/+8
| | | | | | The locale is reflected in the lang field, so the output changes due to the previous commit.
* Update expected test resultsMatthias Clasen2014-09-192-8/+8
| | | | | Update the expected output of the layout tests to the previous change.
* layout tests: Adapt expected outputMatthias Clasen2014-09-031-1/+1
| | | | | We see the 'ellipsized' analysis flag in the output now, as we should.
* Add tests for PangoLayoutMatthias Clasen2014-08-304-0/+73
This tests works similar to the markup parser tests - we populate a layout with known data, and then compare a dump of its properties with expected output.