summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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: Port the threaded PangoCairo test to GTestEmmanuele Bassi2020-04-141-14/+24
| | | | Works just as well.
* tests: Use the appropriate GTest APIEmmanuele Bassi2020-04-149-209/+123
| | | | | | | | Do not use homegrown assertion and failure macros, when GTest has perfectly functional API to deal with all the cases Pango covers. Using GTest also allows us to rely on appropriate formatting for results and logging.
* Add a test for ellipsis shapingMatthias Clasen2019-11-031-0/+29
|
* test-shape: CosmeticsMatthias Clasen2019-11-021-22/+2
| | | | Remove an unused function, and rename another.
* tests: Add missing data filesMatthias Clasen2019-10-311-0/+7
|
* Add tests for new markupMatthias Clasen2019-10-312-0/+43
|
* tests: Handle new attribute valuesMatthias Clasen2019-10-311-0/+1
| | | | Test that new underline values work.
* Merge branch 'tests' into 'master'Matthias Clasen2019-11-011-0/+62
|\ | | | | | | | | Add a test for new font api See merge request GNOME/pango!154
| * Add a test for new font apiMatthias Clasen2019-10-311-0/+62
| | | | | | | | This test exercises the new font enumeration apis.
* | tests: Handle new attributesMatthias Clasen2019-10-312-0/+4
|/
* Adjust expected test outputsMatthias Clasen2019-10-281-2/+2
| | | | The change is a harmless change in attribute list ordering.
* 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-223-0/+8
| | | | | | | 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-222-7345/+0
| | | | This reverts commit 086183f9df9fd8fcfdf83a3801710fdcb2e8316a.
* Add a test for extentsMatthias Clasen2019-08-121-0/+30
| | | | | We want to make sure that the ink rectangles we return have positive size.
* Prevent a crash in ellipsizationMatthias Clasen2019-08-081-5/+27
| | | | | | | We were crashing when ellipsizing text without any attributes. Test included.
* Merge branch 'ellipsize-height' into 'master'Matthias Clasen2019-08-073-1/+75
|\ | | | | | | | | | | | | Pass the right attributes when shaping ellipses Closes #397 See merge request GNOME/pango!127
| * Pass the right attributes when shaping ellipsesMatthias Clasen2019-08-063-1/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-052-0/+7345
|/ | | | | | | | 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.
* tests: Cover new attribute typesMatthias Clasen2019-08-041-0/+3
|
* Add an insert-hyphens attributeMatthias Clasen2019-08-041-0/+1
| | | | | | | | | Add a text attribute that allows to suppress insertion of hyphens at intra-word line breaks. This is useful for non-paragraph-like contexts, where line breaks are needed, but hyphens are not expected.
* Fix the harfbuzz test for win32Matthias Clasen2019-08-031-1/+4
|
* tests: The show attribute affects shapingMatthias Clasen2019-07-251-0/+1
|
* tests: Print the show attributeMatthias Clasen2019-07-251-0/+1
|
* shape-test: Match PangoLayoutMatthias Clasen2019-07-241-1/+84
| | | | | Use the same logic as PangoLayout for filtering attributes.
* test-itemize: Match PangoLayoutMatthias Clasen2019-07-242-7/+65
| | | | | | | Use the same logic as PangoLayout for filtering attributes. Update expected output to match.
* layout: Flip the logic for attribute filteringMatthias Clasen2019-07-241-2/+2
| | | | | | | | | | | Instead of filtering out the attributes we don't want to influence itemization, explicitly filter only those attributes that we want to affect itemization. This makes us no longer break items for custom attributes, such as GtkTextAppearance attributes that are created by GtkTextLayout. Update expected output for layout testcases.
* tests: Print new attributesMatthias Clasen2019-07-221-0/+1
|
* Merge branch 'better-hyphens' into 'master'Matthias Clasen2019-07-226-35/+52
|\ | | | | | | | | Better hyphens See merge request GNOME/pango!89
| * testiter: Add more debug spewMatthias Clasen2019-07-221-2/+9
| |
| * Remove an unused variableMatthias Clasen2019-07-221-3/+0
| |
| * Update expected test outputMatthias Clasen2019-07-204-28/+26
| | | | | | | | Recent changes changed breaks.
| * test-break: Use pango_layout_get_log_attrsMatthias Clasen2019-07-201-3/+18
| | | | | | | | pango_get_log_attrs does not apply allow-break attributes.
* | Add a test for pango_attr_list_updateMatthias Clasen2019-07-191-0/+45
| |
* | tests: Use pango_attr_list_get_attributesMatthias Clasen2019-07-193-162/+96
|/
* test-shape: Exit quietlyMatthias Clasen2019-07-181-0/+4
| | | | | We don't have any testcases for this yet, no reason to fail the testsuite.
* Merge branch 'kill-ft-face' into 'master'Matthias Clasen2019-07-182-0/+69
|\ | | | | | | | | Use harfbuzz for font metrics and glyph lookup See merge request GNOME/pango!58
| * Add a very basic harfbuzz testMatthias Clasen2019-07-182-0/+69
| | | | | | | | | | For now, just check that we get a non-NULL hb_font_t that has a space glyph.
* | test-shape: Print glyph ids in decimalMatthias Clasen2019-07-181-1/+1
| |
* | test-shape: Print widths and offsets separatelyMatthias Clasen2019-07-181-7/+21
|/
* shape test: Output glyph widthsMatthias Clasen2019-07-181-1/+1
|
* Fix more compiler warningsMatthias Clasen2019-07-182-2/+2
| | | | These are clang warnings.
* Update expected test resultsMatthias Clasen2019-07-171-22/+20
| | | | | Some of the hyphenation fixes affected line breaks in the layout tests.
* Add a shape testMatthias Clasen2019-07-172-0/+298
| | | | | | | This is similar in spirit to hb-shape. Take an input and produce a sequence of glyphs as output. There are no testcases yet.
* Fix the buildMatthias Clasen2019-07-161-1/+1
|
* ci: Use an existing fontMatthias Clasen2019-07-161-2/+7
| | | | | We don't care about the particular font here, we just want to list font metrics of an existing font.
* Add a test that prints out font metricsMatthias Clasen2019-07-161-1/+44
| | | | | This is to confirm whether fonts report a nonzero height on Windows.
* Add another layout testMatthias Clasen2019-07-162-0/+51
| | | | | | | This tests a situation in which we had a crash until recently: Multiple paragraphs, with no-break attributes. We used to free the no-break attribute list prematurely.
* Add a layout test with soft hyphensMatthias Clasen2019-07-142-0/+42
|