summaryrefslogtreecommitdiff
path: root/tests/test-itemize.c
Commit message (Collapse)AuthorAgeFilesLines
* test-itemize: Leave out faceidsimple-fontmapMatthias Clasen2022-01-281-0/+2
| | | | | | | | | | The faceid in the serialized font description would make the test output backend-dependent, so leave it out for now. This makes PANGOCAIRO_BACKEND=fc2 ./test-itemize succeed.
* Implement font-dependent scalingMatthias Clasen2021-08-311-0/+1
| | | | | | | Add a new font-scale attribute to indicate font size changes due to super- and subscript shifts, and handle it during item post-processing to find the right font sizes.
* Implement baseline shiftsMatthias Clasen2021-08-311-0/+1
| | | | | | | | | | | Add a new baseline-shift attribute, which is similar to rise, but accumulates. In addition, it supports font- relative values such as superscript and subscript. We implement support for this by computing baseline shifts for run during line post-processing, and storing them in the runs. The renderer now takes these shifts into account when rendering layout lines.
* test-itemize: Keep in sync with PangoLayoutMatthias Clasen2021-08-291-3/+4
| | | | | | This really needs some more generic treatment. Update affected test outputs.
* test-itemize: Print more informationMatthias Clasen2021-08-281-1/+17
| | | | | | | Print out the items num_chars and char_offset, so we can check that the char_offset implementation works. Update affected test outputs.
* test-itemize: Improve generationMatthias Clasen2021-08-281-3/+3
| | | | | | | | | It is very annoying that gtest will dump its random seed into the output as soon as one calls g_test_init(). This pollutes our generated output. Work around that by deferring the g_test_init() call until after we've dealt with generating output.
* tests: Silence compiler warningsMatthias Clasen2021-08-221-1/+1
|
* tests: Make test-itemize work betterMatthias Clasen2021-08-221-3/+3
| | | | | This wasn't working when passed a file on the commandline. Fix that.
* Try harder to skip tests on MacOsMatthias Clasen2021-07-211-0/+24
| | | | | | For tests where the wrong fonts break things, check that we have Cantarell, and skip them if not.
* tests: Locale handling fixesMatthias Clasen2021-07-211-2/+4
| | | | | The return value of setlocale is only good until the next call. Also, consistently use en_US.UTF-8.
* Fix leaks found by asanSzunti2021-01-161-0/+1
|
* Revert "testsuite: Don't use g_test_skip"Simon McVittie2021-01-031-3/+0
| | | | | | | | | | | When versions of Meson with bug https://github.com/mesonbuild/meson/issues/7515 are no longer widespread, the Pango test suite should diagnose which tests are skipped again. Versions 0.55.0 to 0.55.2 inclusive have the bug; version 0.55.3 is OK. This reverts commit 440f9c2609b7f5f9d8f65619b029a5eb660de88b. Signed-off-by: Simon McVittie <smcv@debian.org>
* tests: Fix memory leaksMatthias Clasen2020-09-121-1/+1
| | | | These were showing up as errors from lsan.
* testsuite: Don't use g_test_skipMatthias Clasen2020-07-301-0/+3
| | | | | | | meson 0.55 considers tests using it to be FAIL. I disagree, but lets quietly skip until 0.55.1 is available.
* tests: Update the locale useEmmanuele Bassi2020-06-081-3/+3
| | | | | Create the PangoContext for the test after resetting the locale, and use the en_US.utf8 name, as it seems to be the name used by Fedora.
* tests: Ensure we respect the TAP output formatEmmanuele Bassi2020-06-081-3/+12
| | | | | When dumping the diff between the computed and expected results, we need to respect the TAP format and place "#" in front of each line.
* Skip test-itemize when the en_US locale is missingEmmanuele Bassi2020-06-081-4/+13
| | | | Just like test-layout.
* tests: Use the appropriate GTest APIEmmanuele Bassi2020-04-141-14/+6
| | | | | | | | 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.
* test-itemize: Match PangoLayoutMatthias Clasen2019-07-241-1/+59
| | | | | | | Use the same logic as PangoLayout for filtering attributes. Update expected output to match.
* Fix more compiler warningsMatthias Clasen2019-07-181-1/+1
| | | | These are clang warnings.
* Some test updatesMatthias Clasen2019-07-141-100/+2
| | | | | Share the attribute printing code between all the tests, update expected output to match.
* test-itemize: Introspect attribute namesMatthias Clasen2019-07-141-61/+28
|
* test-itemize: Print out attributes tooMatthias Clasen2019-07-111-2/+119
| | | | Update existing tests.
* Add an itemize testMatthias Clasen2019-07-091-0/+269
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.