summaryrefslogtreecommitdiff
path: root/tests/test-common.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a few memory leaks in testsMatthias Clasen2020-07-081-2/+10
| | | | These were pointed out by asan.
* test-common: Ignore null attr listsTimm Bäder2020-06-081-0/+3
| | | | | pango_layout_get_attributes() is explicitly nullable but not every caller handles that case.
* tests: Handle new attributesMatthias Clasen2019-10-311-0/+2
|
* Add an insert-hyphens attributeMatthias Clasen2019-08-041-0/+1
| | | | | | | | | Add a text attribute that allows to suppress insertion of hyphens at intra-word line breaks. This is useful for non-paragraph-like contexts, where line breaks are needed, but hyphens are not expected.
* tests: Print the show attributeMatthias Clasen2019-07-251-0/+1
|
* tests: Print new attributesMatthias Clasen2019-07-221-0/+1
|
* tests: Use pango_attr_list_get_attributesMatthias Clasen2019-07-191-13/+0
|
* Some test updatesMatthias Clasen2019-07-141-57/+46
| | | | | Share the attribute printing code between all the tests, update expected output to match.
* test-common: do case-insensitive diffsRoss Burton2019-03-251-2/+2
| | | | | | Typically the tests don't care about the case of the characters, but g_printf("%s", 0x0) returns "(null)" if glibc is being used and "(NULL)" if gnulib's drop-in replacement are used. Fixes #356
* test-common: extend print_attribute()Ross Burton2019-03-251-0/+9
| | | | | The copy of print_attribute() in markup-parse.c handles more attributes, so add those here too.
* tests: Don't include unistd.h unconditionallyChun-wei Fan2017-08-081-1/+7
| | | | | | | Don't include unistd.h on Windows, and include io.h if necessary, as Windows compilers may not ship with it. https://bugzilla.gnome.org/show_bug.cgi?id=783274
* [test] Include headerBehdad Esfahbod2015-05-041-0/+1
|
* Split out some test functionsMatthias Clasen2015-03-131-0/+204
These will be reused later.