summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add some tests with variationsMatthias Clasen2018-01-034-0/+96
|
* Test attribute iteratorsMatthias Clasen2018-01-0310-4/+154
| | | | | | Add a quick test for iterating through attribute lists that piggy-backs on the markup tests - we already have attribute lists and a place for expected results here.
* Add some font description testsMatthias Clasen2018-01-031-0/+38
| | | | This adds some tests around the new variations field.
* Fix test buildBehdad Esfahbod2017-11-201-1/+1
|
* Drop fixup_broken_linebreaktest variablePeng Wu2017-11-151-14/+7
| | | | | | The fixup_broken_linebreaktest variable is not needed any more. https://bugzilla.gnome.org/show_bug.cgi?id=789625
* Add char break test casesPeng Wu2017-11-153-1/+32
| | | | | | | Add char break test cases for the is_char_break variable, and fixup_broken_linebreaktest is not used any more. https://bugzilla.gnome.org/show_bug.cgi?id=789625
* testiter: Don't leak PangoFontDescriptionsTimm Bäder2017-10-271-0/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=788643
* [test] Reduce test-pangocairo-thread work by 8xBehdad Esfahbod2017-08-161-2/+2
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=786379
* break: Stop lumping ZWJ with ExtendMatthias Clasen2017-08-151-3/+8
| | | | | | | | | | ZWJ is treated as its own class in TR29, and us lumping them together and then manually checking wc == 0x200d in various places was causing us to inadvertedly inserting grapheme breaks in the middle of Emoji ZWJ sequences where they are not suppose to be. Add test cases to verify this.
* CoreText: Remove absolute size and scaling to screen resolution.John Ralls2017-08-151-1/+10
| | | | | | | | | | | | | Cairo's CGFont backend already handles scaling fonts to the display resolution, so scaling to the screen screen resolution in Pango's CoreText backend generates double-sized text on a Retina display. The layout test depended on providing a (bogus) resolution of 96DPI and scaling the font to it in order to obtain the "expected" layout results. This is replaced by adjusting the font size in test-layout.c if Pango is compiled for CoreText. https://bugzilla.gnome.org/show_bug.cgi?id=782393
* tests: Dist missing layout test filesEmmanuele Bassi2017-08-081-2/+2
| | | | | We're disting only a subset of files with Autotools, but Meson expects everything we have in Git.
* tests: Don't include unistd.h unconditionallyChun-wei Fan2017-08-083-3/+15
| | | | | | | Don't include unistd.h on Windows, and include io.h if necessary, as Windows compilers may not ship with it. https://bugzilla.gnome.org/show_bug.cgi?id=783274
* Update GraphemeBreakTest.txt to Unicode 9.0.0Peng Wu2017-07-311-10/+498
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=782813
* Add some emoji break test casesMatthias Clasen2017-07-312-0/+20
| | | | These are the same testcases from the previous commit.
* Revert "some test cases"Matthias Clasen2017-07-311-3/+1
| | | | | | | This reverts commit 77b56b4248816c5331ba344f19c45865c8bf2a32. This file is a copy of a file in the ucd, we should not change it. Lets add a new test instead.
* some test casesPeng Wu2017-07-291-1/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=780669
* meson: Install tests and additional dataEmmanuele Bassi2017-05-193-1/+130
|
* meson: Add a few missing things, minor fixes, TODONirbheek Chauhan2017-05-191-6/+6
|
* build: Add Meson build systemEmmanuele Bassi2017-05-191-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Meson is a meta build system that is: - fast - simpler to understand and use - portable to multiple platforms through different backends - well integrated with the GNOME platform - well maintained Using Meson allows us to build Pango much more quickly, and on all the platforms we currently target, without any loss of functionality, compared to Autotools. Some timing comparisons with hot ccache for both build systems: * autogen.sh: * meson real 0m11.149s real 0m2.525s user 0m8.153s user 0m1.609s sys 0m2.363s sys 0m1.206s * make -j$(($(nproc) + 2)) * ninja real 0m9.186s real 0m3.387s user 0m16.295s user 0m6.887s sys 0m5.337s sys 0m1.318s -------------------------------------------------------------- * autotools * meson + ninja real 0m27.669s real 0m5.772s user 0m45.622s user 0m8.465s sys 0m10.698s sys 0m2.357s System: Intel Core i7-7500U, SSD, 16GB of RAM
* tests: Use the appropriate extension for the C++ testEmmanuele Bassi2017-05-192-1/+1
| | | | | | While `.C` is a valid GCC extension for C++ files, it only works for case sensitive file systems. Let's use `.cpp`, like the rest of the planet does.
* testattributes: Make it work with --enable-debug=noMatthias Clasen2015-10-031-11/+11
| | | | | | | g_assert gets neutered by --enable-debug=no, which is not what we want in tests. Use g_assert_true instead. https://bugzilla.gnome.org/show_bug.cgi?id=755126
* Give testcases distinct names1.37.4Matthias Clasen2015-09-011-1/+1
| | | | GLib enforces this now.
* [test] Use latin-only fontBehdad Esfahbod2015-09-011-0/+6
| | | | | Exposes an assertion failure: https://bugzilla.gnome.org/show_bug.cgi?id=541608
* Add more markup testsMatthias Clasen2015-08-222-0/+2
|
* [test] Add Thai and Arabic to test-pangocairo-threadsBehdad Esfahbod2015-08-181-1/+1
| | | | | Apparently libthai is not threadsafe. This crashes right away if libthai is enabled...
* Add a testcase for font-features in markupMatthias Clasen2015-08-143-0/+12
|
* Add some tests for markup with alphaMatthias Clasen2015-08-1415-0/+105
|
* Add test for glyphitem-iterBehdad Esfahbod2015-08-081-0/+52
| | | | Fails right now. Fix coming.
* MinorBehdad Esfahbod2015-08-081-6/+5
|
* Silence a few coverity warningsMatthias Clasen2015-07-171-1/+3
| | | | | | | coverity says: Using uninitialized value "index2". It didn't notice that the only time we can reach the index = index2 assignment with index2 still uninitialized is when we are never going to look at index again.
* [test] Include headerBehdad Esfahbod2015-05-041-0/+1
|
* [test] Fix line number reportingBehdad Esfahbod2015-04-061-1/+1
|
* Speed up test-pangocairo-threadsBehdad Esfahbod2015-04-051-2/+2
|
* Kill unused pangorc fileKhaled Hosny2015-04-042-10/+1
|
* Add tests for PangoAttributesMatthias Clasen2015-03-132-0/+637
| | | | | These tests exercise PangoAttribute, PangoAttrList and PangoAttrIterator apis.
* Split out some test functionsMatthias Clasen2015-03-134-169/+240
| | | | These will be reused later.
* Update expected test resultsMatthias Clasen2014-09-192-8/+8
| | | | | Update the expected output of the layout tests to the previous change.
* Don't compare fonts in the layout testMatthias Clasen2014-09-191-1/+1
| | | | | For some reason (that I haven't been able to track down), this fails in the installed tests on build.gnome.org.
* Add some tests for PangoFontDescriptionMatthias Clasen2014-09-082-0/+94
| | | | This just a small beginning, much more is needed here.
* Try to fix the test on build.gnome.orgMatthias Clasen2014-09-061-4/+6
| | | | | | For some reason, the test-layout test does not show the font size when run on build.gnome.org. Try harder to make it use the Cantarell 11 font that I want it to use.
* layout tests: Adapt expected outputMatthias Clasen2014-09-031-1/+1
| | | | | We see the 'ellipsized' analysis flag in the output now, as we should.
* test-layout: Better error reportingMatthias Clasen2014-09-031-8/+62
| | | | | Run diff over the output to give a meaningful error if the comparison fails.
* Add tests for PangoLayoutMatthias Clasen2014-08-306-3/+580
| | | | | | This tests works similar to the markup parser tests - we populate a layout with known data, and then compare a dump of its properties with expected output.
* Add tests for pango markupMatthias Clasen2014-08-2812-3/+360
| | | | | | | | | | This test is modeled after the GMarkup parser tests in GLib. Test file with a name ending in .markup can be dumped in tests/markups/, and tests/markup-parse can be used to generate the expected output files which should be in the same location and with the extension .markup replaced by .expected. The test is also used as an installed test.
* testsuite: put installed tests in the right placeMatthias Clasen2014-05-311-2/+2
| | | | | | Follow the prevailing practice and put the installed tests into $libdir/installed-tests/$PACKAGE instead of $pkglibdir/installed-tests.
* Fix tests for builddir != srcdir by setting G_TEST_{SRC,BUILD}DIRIain Lane2014-02-071-0/+2
|
* Avoid hard-dep on bleeding-edge GLibMatthias Clasen2013-06-073-0/+22
| | | | | | If new test api is not available, do without it. In this case, the tests won't work installed, but they should still work uninstalled and in distcheck.