summaryrefslogtreecommitdiff
path: root/tests/meson.build
Commit message (Collapse)AuthorAgeFilesLines
* Add a test for letterspacingMatthias Clasen2022-01-021-0/+1
| | | | | This tests that we turn off ligatures when letterspacing is enabled.
* Add fonts to installed testsMatthias Clasen2021-12-251-0/+14
| | | | Fixes: #648
* Add a test for the previous commitsmisc-cleanupsMatthias Clasen2021-12-181-0/+1
| | | | | This test verifies the fixes for the situation described in #646.
* Fix handling of space-less fontsfix-spaceless-fontsMatthias Clasen2021-12-161-0/+1
| | | | | | | | | | | HarfBuzz knows how to synthesize spaces, we just need to tickle it in the right way. Test included. Update affected tests. Fixes: #641
* Add a test for 0x6ddarabic-formatMatthias Clasen2021-12-161-0/+1
| | | | This tests the fix in the previous commit.
* layout: Handle a corner caseMatthias Clasen2021-12-091-0/+1
| | | | | | | | | We can't break in a tab run. This fixes an assertion found by afl. Testcase included. Fixes: #638
* Fix line width computationMatthias Clasen2021-12-061-0/+1
| | | | | | | | | | We an only use the line_width - remaining_width shortcut if we are actually maintaining remaining_width, i.e. not if we don't wrap lines. Testcase included. Fixes: #635
* Fix a crash in tab handlingtab-crash-fixMatthias Clasen2021-12-051-0/+1
| | | | | | | | | | When we uninsert the current tab run, we need to reset our tab state to prevent last_tab->glyphs to become a dangling pointer. Test included. Fixes: #634
* Add a test with tab alignmentstab-alignMatthias Clasen2021-11-291-0/+1
|
* tests: Fix installed data for test-layoutMatthias Clasen2021-11-281-28/+29
|
* Add a test for pango_font_serializefont-serialize-testMatthias Clasen2021-11-271-1/+1
| | | | | Now that we have fonts in git, we can reliably test this.
* Skip test-layout on macOSserialization-improvementsMatthias Clasen2021-11-251-1/+6
| | | | It should work there, but it doesn't.
* Make test-layout use included fontsMatthias Clasen2021-11-251-2/+7
| | | | | | | | | Add Cantarell, DejaVu Sans and a subset of Noto Color Emoji to git, and make test-layout use just those fonts. This should help with keeping the ci from breaking due to different system fonts. Update tests.
* Add pango_attr_list_to/from_stringMatthias Clasen2021-11-171-0/+1
| | | | | | Add an api to serialize PangoAttrList. This will be useful in testing and debugging.
* ci: Don't run testrandom on macOsMatthias Clasen2021-11-161-1/+6
| | | | | It fails there (although it shouldn't), and I don't have the means to debug it.
* tests: Add spiced up wrapping testsBenjamin Otte2021-11-151-1/+2
| | | | | | | | | | | | | | | | | | * Generate random string that looks like a sentence. * Measure the size at 100 random widths. * assert that for those widths, when sorted, the measured widths are increasing and the heights are decreasing. * Generate random string that looks like a sentence. * Generate a 2nd string adding hyphen + newline after every char of original string. * Assert that wrap-char wrap with width=0 is not larger than the width of the 2nd string The tests also generate random strings in LTR, RTL or both at the same time to spice the test up even more. It does that by picking random words out of hunspell directories, and if none are installed, it falls back to lorem ipsum.
* Add code to validate log attrsMatthias Clasen2021-08-261-1/+1
| | | | | | This is just used in tests for now. If we decide to make an external log attr api, we can make this public.
* Sync up test file listsfix-test-listsMatthias Clasen2021-08-221-1/+25
| | | | | | We have more tests than meson knows about. Fixes: #600
* Add tests for pango_layout_move_cursor_visuallybidi-adventuresMatthias Clasen2021-08-051-1/+1
| | | | Some of these currently fail.
* tests: Locale handling fixesMatthias Clasen2021-07-211-0/+1
| | | | | The return value of setlocale is only good until the next call. Also, consistently use en_US.UTF-8.
* tests: Move bidi tests to their own filemore-test-coverage2Matthias Clasen2021-07-061-1/+2
| | | | Also add some tests for bidi embedding levels.
* tests: Add tests for PangoTabArrayMatthias Clasen2021-06-281-0/+1
|
* tests: Add tests for PangoMatrixMatthias Clasen2021-06-281-0/+1
|
* tests: Add tests for PangoLanguageMatthias Clasen2021-06-281-1/+2
|
* tests: Add some PangoContext testsMatthias Clasen2021-06-281-0/+1
| | | | These improve converage for misc PangoContext apis.
* tests: Improve markup test coverageMatthias Clasen2021-06-281-0/+37
| | | | Cover many more error cases.
* markup tests: Add tests for parsing accelsmarkup-parse-fixesMatthias Clasen2021-03-021-0/+3
| | | | | Add tests that test some of the corner cases handled in the previous commit.
* tests: Add tests for pango_font_describefix-font-roundtripMatthias Clasen2021-01-241-0/+2
| | | | | | | | | 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: 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-301-3/+2
| | | | | | | | | | | | 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.
* Make dependencies to libthai, cairo and xft optional.Niklas Guertler2020-09-091-5/+5
| | | | Added meson features for disabling the dependencies libthai, cairo and xft such that they won't be used even if present on the system. Changed meson dependencies for some tests accordingly.
* Add a test for a crash in shape_tabMatthias Clasen2020-06-091-0/+1
| | | | This verifies the fix in the previous commit.
* tests: Use idiomatic Meson and GTest optionsEmmanuele Bassi2020-04-141-6/+10
| | | | | | - Switch to an environment() object, to allow for proper escaping - Use the TAP protocol with GTest - Put all tests under the Pango suite
* tests: Add missing data filesMatthias Clasen2019-10-311-0/+7
|
* Skip thai break tests without libthaiMatthias Clasen2019-09-041-1/+4
| | | | | | If we don't have libthai, these tests fail. Closes: https://gitlab.gnome.org/GNOME/pango/issues/420
* tests: add test-break test case for Thai languagePeng Wu2019-08-221-0/+1
| | | | | | | Thai language requires word dictionary from libthai project for word/sentence breaks. Adding this test case to check the results of sentence breaks.
* Revert "tests: add missing LineBreakTest.txt"Peng Wu2019-08-221-1/+0
| | | | This reverts commit 086183f9df9fd8fcfdf83a3801710fdcb2e8316a.
* Merge branch 'ellipsize-height' into 'master'Matthias Clasen2019-08-071-0/+1
|\ | | | | | | | | | | | | Pass the right attributes when shaping ellipses Closes #397 See merge request GNOME/pango!127
| * Pass the right attributes when shaping ellipsesMatthias Clasen2019-08-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we are splitting attributes into those that are relevant for itemization and shaping, we need to make sure to pass the right ones along when ellipsizing, or we risk picking a wildly mismatching font for the ellipsis run, causing things to shift vertically. Test included. Closes: https://gitlab.gnome.org/GNOME/pango/issues/397 Thanks to Jorge Luis Martinez Gomez for his help in tracking this down.
* | tests: add missing LineBreakTest.txtRoss Burton2019-08-051-0/+1
|/ | | | | | | | Without this file one of the tests is always skipped: /text/break/line: /usr/libexec/installed-tests/pango/LineBreakTest.txt not found. Skipping test. Taken from the Unicode 12.0.0 release.
* Add a very basic harfbuzz testMatthias Clasen2019-07-181-0/+1
| | | | | For now, just check that we get a non-NULL hb_font_t that has a space glyph.
* Add a shape testMatthias Clasen2019-07-171-0/+1
| | | | | | | This is similar in spirit to hb-shape. Take an input and produce a sequence of glyphs as output. There are no testcases yet.
* Add some tests for coverageMatthias Clasen2019-07-121-0/+1
|
* tests: Link against libpangocairoMatthias Clasen2019-07-091-2/+2
| | | | Some tests were not having the right dependencies.
* install itemize test dataMatthias Clasen2019-07-091-0/+11
|
* install break test dataMatthias Clasen2019-07-091-0/+13
|
* Add an itemize testMatthias Clasen2019-07-091-0/+1
| | | | | | | | This is similar to test-break in that it produces useful output for understanding itemization. Non testcases for now. One issue is that this, like so many other tests is font-dependent.
* Make the break test actually test thingsMatthias Clasen2019-07-071-1/+1
| | | | | We were not diffing the output against the expected results.
* Add a test for log attrsMatthias Clasen2019-07-071-0/+1
| | | | This is useful for exploring line breaking.
* Make installed tests optionalMatthias Clasen2019-07-061-6/+8
| | | | Closes: https://gitlab.gnome.org/GNOME/pango/issues/354