summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* test-layout: Be robust against odd runsMatthias Clasen2019-07-141-16/+4
| | | | | This causes some changes in the output. Update expected output.
* Some test updatesMatthias Clasen2019-07-1421-353/+245
| | | | | Share the attribute printing code between all the tests, update expected output to match.
* test-itemize: Introspect attribute namesMatthias Clasen2019-07-141-61/+28
|
* Add some tests for coverageMatthias Clasen2019-07-122-0/+84
|
* Add a test for itemization with attributesMatthias Clasen2019-07-112-0/+11
| | | | This tests that font_fatures don't break runs anymore.
* test-itemize: Print out attributes tooMatthias Clasen2019-07-112-7/+125
| | | | Update existing tests.
* 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 a testcase for itemizationMatthias Clasen2019-07-092-0/+8
| | | | Seems that the testsuite fails without any.
* Merge branch 'soft-hyphen-cleanup' into 'master'Matthias Clasen2019-07-092-10/+5
|\ | | | | | | | | Soft hyphen cleanup See merge request GNOME/pango!72
| * Update testsMatthias Clasen2019-07-092-10/+5
| | | | | | | | | | | | test-break was using the is_soft_hyphen log attr that we've just removed again. Adapt, and update expected test output.
* | Add an itemize testMatthias Clasen2019-07-092-0/+270
|/ | | | | | | | 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.
* Add another break testcaseMatthias Clasen2019-07-072-0/+7
|
* test-break: Print line separator in hexMatthias Clasen2019-07-071-1/+3
| | | | This alternative is not useful.
* Add another break testcaseMatthias Clasen2019-07-072-0/+8
| | | | This one is taken from #218.
* Document the break testcaseMatthias Clasen2019-07-071-0/+1
|
* test-break: Skip initial comment in test filesMatthias Clasen2019-07-071-4/+12
| | | | This is useful for documenting tests.
* Make the break test actually test thingsMatthias Clasen2019-07-073-7/+17
| | | | | We were not diffing the output against the expected results.
* Add a test for log attrsMatthias Clasen2019-07-074-0/+296
| | | | 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
* Header cleanupMatthias Clasen2019-07-042-3/+1
| | | | | | | Abolish the PANGO_ENABLE_BACKEND and PANGO_ENABLE_ENGINE defines. All backend-only apis are moved into private headers, all apis that were engine-only are marked as deprecated, since engines are.
* Drop g_type_init callsMatthias Clasen2019-07-041-4/+0
| | | | | These were ifdefed to an older version of GLib than we require now, so are just dead code.
* Merge branch 'testfiles' into 'master'Matthias Clasen2019-07-033-0/+2385
|\ | | | | | | | | Include more Unicode 11 test cases See merge request GNOME/pango!33
| * Include more Unicode 11 test casesPeng Wu2019-03-043-0/+2385
| | | | | | | | | | Add more Unicode 11 test cases files: WordBreakTest.txt and SentenceBreakTest.txt.
* | Merge branch 'test' into 'master'Matthias Clasen2019-07-013-153/+15
|\ \ | | | | | | | | | | | | | | | | | | Clean up markup-test, do case-insensitive diffs Closes #356 See merge request GNOME/pango!44
| * | test-common: do case-insensitive diffsRoss Burton2019-03-251-2/+2
| | | | | | | | | | | | | | | | | | Typically the tests don't care about the case of the characters, but g_printf("%s", 0x0) returns "(null)" if glibc is being used and "(NULL)" if gnulib's drop-in replacement are used. Fixes #356
| * | markup-parse: don't duplicate codeRoss Burton2019-03-252-151/+4
| | | | | | | | | | | | Use the functions in test-common.c instead of replicating them.
| * | test-common: extend print_attribute()Ross Burton2019-03-251-0/+9
| | | | | | | | | | | | | | | The copy of print_attribute() in markup-parse.c handles more attributes, so add those here too.
* | | Add a layout test with EmojiMatthias Clasen2019-06-032-0/+27
| | |
* | | Regenerate expected layout test outputMatthias Clasen2019-06-032-8/+8
| | | | | | | | | | | | | | | | | | The locale is reflected in the lang field, so the output changes due to the previous commit.
* | | layout test: Use a better localeMatthias Clasen2019-06-031-1/+2
| | | | | | | | | | | | | | | We need to use a Unicode locale in order to test Emoji and similar glyphs.
* | | Revert "Replace PangoScript by GUnicodeScript"Michael Catanzaro2019-05-271-1/+1
| | | | | | | | | This reverts commit 3e754defc364a89b2136894399b3463976840156
* | | Replace PangoScript by GUnicodeScriptMatthias Clasen2019-05-251-1/+1
|/ / | | | | | | | | | | | | | | | | This commit replaces the PangoScript enum by a typedef to GUnicodeScript, and preserves the old enum values as defines. This depends on adding an enum type for GUnicodeScript in gobject.
* | tests: fix build dependencyMarco Felsch2019-03-131-1/+6
|/ | | | | | | In case of cairo is found but without png support this test will fail during linking becuase the 'cairo_surface_write_to_png' is undefined. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
* Update GraphemeBreakTest.txt to Unicode 11Peng Wu2018-11-201-654/+505
|
* Drop autotoolsMatthias Clasen2018-08-281-142/+0
| | | | We will just use meson from now on.
* Restore scaling of CoreText fonts.John Ralls2018-05-081-10/+1
| | | | Fixes bug 787867.
* tests/markup-parse.c: Fix build on Visual StudioChun-wei Fan2018-03-301-1/+7
| | | | | Visual Studio does not ship with a unistd.h, so include the proper header on Windows when unistd.h is not found on Windows.
* meson: Check for HarfBuzz and FontConfig for PangoFT2Chun-wei Fan2018-03-301-1/+1
| | | | | | | | | | | | | | | | | | | | | It is possible that we can have the following situations, at least on Windows: -FreeType present, FontConfig missing -Cairo-FT present, with no FontConfig support. As gen-script-for-lang requires FontConfig, and PangoFT2 depends on HarfBuzz, FontConfig and Freetype, we need to check for them before we build PangoFT2, and so that we could include PangoFT2 support in PangoCairo. The tests and pango-view have an optional dependency on PangoFT2, so we need to also check whether we built PangoFT2 before we try to build things related to PangoFT2. For the tools, since gen-script-for-lang.c depends on FontConfig, check for it as well before we build it. https://bugzilla.gnome.org/show_bug.cgi?id=783274