Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Quiet another compiler warning | Matthias Clasen | 2021-07-10 | 1 | -1/+1 |
| | |||||
* | Silence compiler warnings | Matthias Clasen | 2021-07-10 | 1 | -1/+2 |
| | |||||
* | tests: Add a way to show fonts in test-layout | Matthias Clasen | 2021-07-10 | 1 | -1/+5 |
| | | | | | | | This is sometimes useful, even if we want to avoid it in ci. So add an environment variable, PANGO_TEST_SHOW_FONT to make it show the actual font instead of 'OMITTED'. | ||||
* | Add more testcases for pango_attr_list_changeattr-list-change-fix | Matthias Clasen | 2021-07-09 | 1 | -9/+264 |
| | | | | | | Add more cases to cover move of the branches in this complicated function. Among other things, this tests the fix in the previous commit. | ||||
* | Improve attribute test infrastructure | Matthias Clasen | 2021-07-09 | 3 | -101/+84 |
| | | | | | | | | | | Make attribute_from_string() parse enum attribute values in the same way as PangoMarkup, and use it in the attribute tests. Still to do: Do the same for flags. The flags parsing function isn't exported, so this needs our tests to be statically linked. | ||||
* | Add a few missing chars to pango_is_zero_widthmissing-zerowidth-chars | Matthias Clasen | 2021-07-09 | 1 | -0/+11 |
| | | | | | | | | The documentation for this function states that all bidi control chars are zero width, but it was missing the Isolate ones. Add them. Updated tests included. | ||||
* | Add a testcase for pango_attr_list_changetest-for-564 | Matthias Clasen | 2021-07-09 | 1 | -0/+22 |
| | | | | | This recreates the scenario described in #564. It works fine. | ||||
* | break: Fix handling of tag sequencestests-and-fixes | Matthias Clasen | 2021-07-07 | 3 | -1/+9 |
| | | | | | | | | Correctly classify tag characters as Grapheme_Extend, so that we don't end up putting grapheme boundaries in the middle of tag sequences. Includes a test. | ||||
* | tests: Add some more layout tests | Matthias Clasen | 2021-07-07 | 6 | -0/+127 |
| | |||||
* | tests: Dump grapheme boundaries too | Matthias Clasen | 2021-07-07 | 11 | -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 testcases | Matthias Clasen | 2021-07-07 | 4 | -0/+18 |
| | |||||
* | tests: Add more glyph item iter tests | Matthias Clasen | 2021-07-07 | 1 | -4/+13 |
| | |||||
* | tests: Add more glyph item tests | Matthias Clasen | 2021-07-06 | 1 | -0/+30 |
| | |||||
* | tests: Add more font tests | Matthias Clasen | 2021-07-06 | 1 | -8/+90 |
| | |||||
* | tests: Move bidi tests to their own filemore-test-coverage2 | Matthias Clasen | 2021-07-06 | 3 | -58/+180 |
| | | | | Also add some tests for bidi embedding levels. | ||||
* | tests: Add some more script iter tests | Matthias Clasen | 2021-07-06 | 1 | -0/+10 |
| | |||||
* | tests: Add tests for fallback shaping | Matthias Clasen | 2021-07-06 | 1 | -0/+37 |
| | |||||
* | tests: Make test-break output more convenient | Matthias Clasen | 2021-07-06 | 1 | -6/+10 |
| | | | | | Avoid g_test_init if we are just generating expected output, for easier updating. | ||||
* | tests: Check more layout properties | Matthias Clasen | 2021-07-06 | 28 | -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 coverage | Matthias Clasen | 2021-07-06 | 1 | -0/+9 |
| | | | | Spot-check a copied layout in test-break. | ||||
* | Fix a memory leak | Matthias Clasen | 2021-07-06 | 1 | -0/+2 |
| | |||||
* | tests: Free the sizes array, if it was allocated | Jan Alexander Steffens (heftig) | 2021-07-02 | 1 | -0/+1 |
| | |||||
* | tests: In attribute_from_string, parse offsets as long long | Jan Alexander Steffens (heftig) | 2021-07-02 | 1 | -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-tests | Matthias Clasen | 2021-06-30 | 1 | -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 include | Matthias Clasen | 2021-06-28 | 1 | -1/+0 |
| | | | | Now that we aren't using the M_ constants, drop math.h. | ||||
* | testmatrix.c: use G_SQRT2 insead of M_SQRT2 | Jordan Petridis | 2021-06-28 | 1 | -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-coverage | Matthias Clasen | 2021-06-28 | 1 | -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 tests | Matthias Clasen | 2021-06-28 | 1 | -0/+64 |
| | |||||
* | Add some more font api tests | Matthias Clasen | 2021-06-28 | 1 | -0/+71 |
| | | | | Exercise the list model apis, for coverage. | ||||
* | tests: Add tests for PangoGravity | Matthias Clasen | 2021-06-28 | 1 | -0/+57 |
| | |||||
* | tests: Add tests for PangoTabArray | Matthias Clasen | 2021-06-28 | 2 | -0/+111 |
| | |||||
* | tests: Add tests for PangoMatrix | Matthias Clasen | 2021-06-28 | 2 | -0/+206 |
| | |||||
* | tests: Add tests for PangoLanguage | Matthias Clasen | 2021-06-28 | 2 | -1/+69 |
| | |||||
* | tests: Add tests for version apis | Matthias Clasen | 2021-06-28 | 1 | -0/+25 |
| | | | | Check the previous change. | ||||
* | tests: Add some PangoContext tests | Matthias Clasen | 2021-06-28 | 2 | -0/+146 |
| | | | | These improve converage for misc PangoContext apis. | ||||
* | tests: Add more attribute tests | Matthias Clasen | 2021-06-28 | 1 | -1/+50 |
| | | | | These improve test coverage for some corner cases. | ||||
* | tests: Add some color tests | Matthias Clasen | 2021-06-28 | 1 | -0/+30 |
| | |||||
* | tests: Improve markup test coverage | Matthias Clasen | 2021-06-28 | 86 | -20/+446 |
| | | | | Cover many more error cases. | ||||
* | Add better attribute test infrastructure | Matthias Clasen | 2021-06-28 | 3 | -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-test | Matthias Clasen | 2021-06-19 | 1 | -0/+60 |
| | | | | | This tests that we handle more cases of overlapping attributes properly. | ||||
* | Add a test for unlimited attributesmore-attr-update-fixes | Matthias Clasen | 2021-05-23 | 1 | -0/+10 |
| | | | | Test the fix in the previous commit. | ||||
* | Add a testcase for pango_attr_list_updatefix-attr-list-update | Matthias Clasen | 2021-05-23 | 1 | -0/+26 |
| | | | | This captures bug fixed in the previous commit. | ||||
* | Fix a thinko | Matthias Clasen | 2021-05-10 | 1 | -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 again | Matthias Clasen | 2021-05-10 | 1 | -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-height | Matthias Clasen | 2021-05-08 | 1 | -0/+21 |
| | | | | | | | We were just never setting the height. Ouch! Test included. Fixes: #487 | ||||
* | layout: Don't insert hyphens at word boundariesword-break-hyphens | Matthias Clasen | 2021-05-08 | 1 | -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 output | Matthias Clasen | 2021-05-08 | 1 | -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 Clasen | 2021-03-03 | 10 | -7/+74 |
|\ | | | | | | | | | Markup parse fixes See merge request GNOME/pango!292 | ||||
| * | markup tests: Add tests for parsing accelsmarkup-parse-fixes | Matthias Clasen | 2021-03-02 | 7 | -0/+60 |
| | | | | | | | | | | Add tests that test some of the corner cases handled in the previous commit. | ||||
| * | markup-parse: Make generating files more convenient | Matthias Clasen | 2021-03-02 | 1 | -4/+4 |
| | | | | | | | | | | Don't print extraneous output when we are generating an .expected file. |