summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: Dump grapheme boundaries tooMatthias Clasen2021-07-0711-5/+52
| | | | | | | Add grapheme boundaries to the output of test-break, so we can check those easily, too. Update expected test output for this.
* tests: Add some more break testcasesMatthias Clasen2021-07-074-0/+18
|
* tests: Add more glyph item iter testsMatthias Clasen2021-07-071-4/+13
|
* tests: Add more glyph item testsMatthias Clasen2021-07-061-0/+30
|
* tests: Add more font testsMatthias Clasen2021-07-061-8/+90
|
* tests: Move bidi tests to their own filemore-test-coverage2Matthias Clasen2021-07-063-58/+180
| | | | Also add some tests for bidi embedding levels.
* tests: Add some more script iter testsMatthias Clasen2021-07-061-0/+10
|
* tests: Add tests for fallback shapingMatthias Clasen2021-07-061-0/+37
|
* tests: Make test-break output more convenientMatthias Clasen2021-07-061-6/+10
| | | | | Avoid g_test_init if we are just generating expected output, for easier updating.
* tests: Check more layout propertiesMatthias Clasen2021-07-0628-29/+867
| | | | | | | | Allow setting more layout properties in test-layout, and check their values after setting them. Also print out directions and cursor positions. Update existing tests, and add more.
* tests: Improve coverageMatthias Clasen2021-07-061-0/+9
| | | | Spot-check a copied layout in test-break.
* Fix a memory leakMatthias Clasen2021-07-061-0/+2
|
* tests: Free the sizes array, if it was allocatedJan Alexander Steffens (heftig)2021-07-021-0/+1
|
* tests: In attribute_from_string, parse offsets as long longJan Alexander Steffens (heftig)2021-07-021-3/+3
| | | | | We need space for G_MAXUINT and 4294967285 (in testattributes.c). On i686, this requires long long, as long is only 32 bits wide.
* tests: Be more careful about font formatsbitmap-font-testsMatthias Clasen2021-06-301-3/+1
| | | | | | | It turns out that we can still see non-scalable fonts which report a list of sizes. Take that into account. Fixes: #570
* tests: Drop an unused includeMatthias Clasen2021-06-281-1/+0
| | | | Now that we aren't using the M_ constants, drop math.h.
* testmatrix.c: use G_SQRT2 insead of M_SQRT2Jordan Petridis2021-06-281-3/+3
| | | | | | | | | | Math implementations are platform dependent, and for example msvc requires a define before enabling the constants [1] Use G_SQRT2 implementation which is independent instead. [1] https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=msvc-160
* 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.