summaryrefslogtreecommitdiff
path: root/tests/testmisc.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: Silence compiler warningsMatthias Clasen2021-08-221-1/+1
|
* Add a layout extents checkMatthias Clasen2021-08-201-0/+72
| | | | | Add a check that tests that layout, line, run, cluster and char extents are nested as expected.
* Add a test for pango_layout_index_to_xmore-testsMatthias Clasen2021-08-101-2/+51
| | | | | Test that we can round-trip with pango_layout_x_index (most of the time).
* testmisc.c: Fix builds without FontConfig/PangoFT2Chun-wei Fan2021-08-091-0/+7
| | | | | Some tests used items from PangoFT2, which may not have been enabled on platforms where that was optionally built.
* Add a test for pango_layout_get_cursor_posfix-split-cursors-at-endMatthias Clasen2021-08-041-0/+37
| | | | | | This checks that we get split cursors in some cases where we expect it. One of the cases was broken until the previous commit.
* Add an old testcaseMatthias Clasen2021-08-041-0/+29
| | | | | | | | This was quite an odyssee: - Identify commit from 2008 that caused a regression - Spot the commit message alluding to a crash - Identify bug number in NEWS for releases from 2008 - Find the bug in the no longer searchable bugzilla.gnome.org
* Add a few missing chars to pango_is_zero_widthmissing-zerowidth-charsMatthias Clasen2021-07-091-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.
* tests: Move bidi tests to their own filemore-test-coverage2Matthias Clasen2021-07-061-57/+12
| | | | Also add some tests for bidi embedding levels.
* tests: Add tests for fallback shapingMatthias Clasen2021-07-061-0/+37
|
* 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
|
* tests: Add tests for PangoGravityMatthias Clasen2021-06-281-0/+57
|
* tests: Add tests for version apisMatthias Clasen2021-06-281-0/+25
| | | | Check the previous change.
* 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.
* 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
* tests: Plug a memory leakMatthias Clasen2021-01-231-0/+1
| | | | | We just plugged all the memory leaks in tests, lets not introduce new ones.
* Fix the length checkingWeng Xuetian2021-01-141-0/+14
| | | | Closes #526
* Don't assert in pango_language_get_scriptsavoid-script-lang-crashMatthias Clasen2020-09-081-0/+15
| | | | | | | | | | | The assertion in pango_language_get_scripts can actually be triggered since we last regenerated the pango_script_for_lang table. It now includes an entry for und-zsye which has no scripts. Handle this case without asserting. This commit includes a test.
* Add a reproducer for a pidgin crashMatthias Clasen2020-07-301-0/+20
| | | | This test is reproducing the crash reported in #490.
* itemize: Work around gtk2 brokennessMatthias Clasen2020-06-101-0/+14
| | | | | | | | | | | GTK 2 apparently manages to call pango_itemize_with_base_dir with a non-zero length for a string that contains 0 characters. That in turn causes pango_log2vis_get_embedding_levels to return NULL, and things go downhill from there. A test is included. Fixes: #480
* tests: Add an explanationMatthias Clasen2020-06-091-0/+3
| | | | | Lets explain what this test is about, since it doesn't appear to test anything.
* Add a test for a crash in shape_tabMatthias Clasen2020-06-091-0/+49
This verifies the fix in the previous commit.