summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add missing bidi typestest-coverageMatthias Clasen2021-06-281-2/+5
| | | | | The api is deprecated, but it is very ugly to randomly miss a few values here. Just add them.
* tests: Add some bidi api testsMatthias Clasen2021-06-281-0/+64
|
* Add some more font api testsMatthias Clasen2021-06-281-0/+71
| | | | Exercise the list model apis, for coverage.
* tests: Add tests for PangoGravityMatthias Clasen2021-06-281-0/+57
|
* tests: Add tests for PangoTabArrayMatthias Clasen2021-06-282-0/+111
|
* tests: Add tests for PangoMatrixMatthias Clasen2021-06-282-0/+206
|
* tests: Add tests for PangoLanguageMatthias Clasen2021-06-282-1/+69
|
* tests: Add tests for version apisMatthias Clasen2021-06-281-0/+25
| | | | Check the previous change.
* tests: Add some PangoContext testsMatthias Clasen2021-06-282-0/+146
| | | | These improve converage for misc PangoContext apis.
* tests: Add more attribute testsMatthias Clasen2021-06-281-1/+50
| | | | These improve test coverage for some corner cases.
* tests: Add some color testsMatthias Clasen2021-06-281-0/+30
|
* tests: Improve markup test coverageMatthias Clasen2021-06-2886-20/+446
| | | | Cover many more error cases.
* Add better attribute test infrastructureMatthias Clasen2021-06-283-226/+249
| | | | | | | Add a way to deserialize a PangoAttrList from a string, for less cumbersome tests. And use it in testattributes.
* Add another test for pango_attr_list_changeattrlist-testMatthias Clasen2021-06-191-0/+60
| | | | | This tests that we handle more cases of overlapping attributes properly.
* Add a test for unlimited attributesmore-attr-update-fixesMatthias Clasen2021-05-231-0/+10
| | | | Test the fix in the previous commit.
* Add a testcase for pango_attr_list_updatefix-attr-list-updateMatthias Clasen2021-05-231-0/+26
| | | | This captures bug fixed in the previous commit.
* Fix a thinkoMatthias Clasen2021-05-101-2/+2
| | | | | | | | | The commit message for d476d2a944500f8553 said "word boundaries", but the code checked for line breaks. That was wrong, since it also made hyphens disappear at SHY, where we very much want them. Update affected tests.
* test-break: Make help output work againMatthias Clasen2021-05-101-3/+4
| | | | | | | test-break has a helpful text that explains the maining of the output. Unfortunately, the --help option is taken by g_test_init(), so make this available with --legend.
* Make pango_layout_line_get_height workfix-layout-line-heightMatthias Clasen2021-05-081-0/+21
| | | | | | | We were just never setting the height. Ouch! Test included. Fixes: #487
* layout: Don't insert hyphens at word boundariesword-break-hyphensMatthias Clasen2021-05-081-2/+2
| | | | | | | | | | We only want to insert hyphens when we are breaking inside a word. Update affected tests (hyphen-or-not shows up in the analysis flags in the output of test-layout). Fixes: #558
* tests: Avoid extraneous markup in outputMatthias Clasen2021-05-081-1/+1
| | | | | | When using test-layout FILE to generate expected output, we don't want to prepend an extraneous '#' to every line.
* Merge branch 'markup-parse-fixes' into 'master'Matthias Clasen2021-03-0310-7/+74
|\ | | | | | | | | Markup parse fixes See merge request GNOME/pango!292
| * markup tests: Add tests for parsing accelsmarkup-parse-fixesMatthias Clasen2021-03-027-0/+60
| | | | | | | | | | Add tests that test some of the corner cases handled in the previous commit.
| * markup-parse: Make generating files more convenientMatthias Clasen2021-03-021-4/+4
| | | | | | | | | | Don't print extraneous output when we are generating an .expected file.
| * markup tests: Pass accel_marker='_'Matthias Clasen2021-03-021-1/+8
| | | | | | | | | | | | And print out the accel_char if we get one back. This will let us add tests for accel functionality.
| * markup tests: Remove an _Matthias Clasen2021-03-022-2/+2
| | | | | | | | | | This is in preparation for adding some tests that will check accel handling.
* | Fix a corner-case of pango_attr_list_splicefix-attribute-splicingMatthias Clasen2021-02-171-2/+36
|/ | | | | | | | | | | | | | When the 'other' list contains attributes that are unlimited or exceed the range given to pango_attr_list_splice, those attributes were 'leaking' out of the range. The visible effect of this is that the underline of preedit text extends outside the preedit in some GTK entries. Fix this by clipping the inserted attributes to the range. The documentation is not very explicit about this, but I believe this is the expected behavior. Tests included.
* Try to fix thai break testcaseMatthias Clasen2021-02-162-7/+6
| | | | | Remove the dashes that cause the runs to break, and seem to be causing issues on both Debian and newer Fedora.
* tests: Add tests for pango_font_describefix-font-roundtripMatthias Clasen2021-01-242-1/+72
| | | | | | | | | Test that round-tripping through pango_font_describe works. This is currently broken for scalable bitmap fonts, such as color Emoji fonts. We skip the test on OS X where we are most likely missing the fonts.
* tests: Fix an errant unrefMatthias Clasen2021-01-241-1/+0
| | | | pango_cairo_font_map_get_default is transfer none.
* tests: Avoid locale dependencyfix-test-outputMatthias Clasen2021-01-231-5/+10
| | | | | | | When producing output, use the C locale for formatting floating point numbers, to avoid locale dependent output. Fixes: #474
* Merge branch 'fix-test-leak' into 'master'Matthias Clasen2021-01-231-0/+1
|\ | | | | | | | | Fix test leak See merge request GNOME/pango!276
| * tests: Plug a memory leakMatthias Clasen2021-01-231-0/+1
| | | | | | | | | | We just plugged all the memory leaks in tests, lets not introduce new ones.
* | tests: Don't assert too muchfont-face-fixesMatthias Clasen2021-01-231-1/+1
|/ | | | | | | | | | We can't guarantee uniqueness of face names, so we don't know that getting a face by name will return the same face we got the name from (which is true if faces are unique). So, just assert that we get a face with the same name. Fixes: #494
* Merge branch 'fix' into 'master'Matthias Clasen2021-01-211-0/+14
|\ | | | | | | | | | | | | Fix the length checking Closes #526 See merge request GNOME/pango!273
| * Fix the length checkingWeng Xuetian2021-01-141-0/+14
| | | | | | | | Closes #526
* | Apply 1 suggestion(s) to 1 file(s)Matthias Clasen2021-01-201-1/+1
| |
* | Fix leaks found by asanSzunti2021-01-164-2/+10
|/
* Revert "testsuite: Don't use g_test_skip"Simon McVittie2021-01-034-14/+0
| | | | | | | | | | | When versions of Meson with bug https://github.com/mesonbuild/meson/issues/7515 are no longer widespread, the Pango test suite should diagnose which tests are skipped again. Versions 0.55.0 to 0.55.2 inclusive have the bug; version 0.55.3 is OK. This reverts commit 440f9c2609b7f5f9d8f65619b029a5eb660de88b. Signed-off-by: Simon McVittie <smcv@debian.org>
* tests: Add missing executable bits for helper scriptswip/kalev/fix-installed-testsKalev Lember2020-11-092-0/+0
| | | | | | This fixes the build after commit ddc282f6ca84dc6e6e5586a0addfa82a74e6e761 that changed how the scripts are invoked, but didn't add the executable bits.
* tests: Don't free attributes prematurelyMatthias Clasen2020-11-061-2/+2
| | | | | test-shape was using one of its attribute lists after dropping the reference on it. Don't do that.
* Merge branch 'test-shape-fix' into 'master'Matthias Clasen2020-11-061-1/+1
|\ | | | | | | | | Test shape fix See merge request GNOME/pango!257
| * tests: Improve output of test-shapetest-shape-fixMatthias Clasen2020-11-061-1/+1
| | | | | | | | | | | | | | We don't have any test cases for this in our testsuite, but it is useful to run this manually to see the shaping results. The output was missing all but the first char for the last cluster in an item.
* | tests: Don't add four.break twicefour-but-only-onceMatthias Clasen2020-10-021-1/+0
|/ | | | | | | As pointed out by Werner Lemberg, we were adding four.break twice if libthai is used. Fixes: #508
* build: Remove deprecated python3 Meson module useEmmanuele Bassi2020-09-303-3/+6
| | | | | | | | | | | | We are using the deprecated python3 module for historical reasons. We used to support both Python 2 and Python 3 in the Autotools build, but since we switched to Meson we *know* we have Python 3 available. This allows us to use a shebang line in the Python scripts we use in the build, instead of invoking them through the Python interpreter in a custom target; Meson knows how to handle shebangs portably as well. This change removes the only deprecation warning coming from Meson when configuring the Pango build.
* Add a test for keycap sequencesfix-keycap-sequencesMatthias Clasen2020-09-172-0/+27
| | | | | This tests that we are not breaking items up in the middle of a keycap sequence.
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-09-171-3/+5
|\ | | | | | | | | misc fixes See merge request GNOME/pango!242
| * Make test-layout work for generating data againMatthias Clasen2020-09-171-3/+8
| | | | | | | | This was broken in f6032b754fd76ebbf0ae6.
* | Merge branch 'fix-nested-attributes' into 'master'Matthias Clasen2020-09-171-0/+89
|\ \ | |/ | | | | | | Fix attr iterators with overlapping attributes See merge request GNOME/pango!240
| * Fix attr iterators with overlapping attributesfix-nested-attributesMatthias Clasen2020-09-171-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | This broke when PangoAttrIterator was changed to use an array for the stack of current attributes, in dec6c0868ef2c36. We were not always walking the array in the right order. The first attribute to check is at the *end* of the array. This showed up as misrendering in epsilon_0 example in gtk3-demo's text view markup demo. Test included.