| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
We want to use this without initializing tests.
|
|
|
|
| |
We need to copy the scale hack for bitmaps.
|
|
|
|
| |
This makes more sense.
|
|
|
|
|
|
|
| |
Our new, more precise font checks rely on
data from fontconfig to identify fonts
uniquely. So make sure that we use a custom
fc fontmap, if we have one.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Not used anymore.
|
|
|
|
|
|
| |
Use the new output serialization in test-layout
to store both the input and output in the same
file.
|
|
|
|
|
|
|
| |
This gives us some room to add more things
to these apis, e.g. a way to store not just
the input part of a layout, but also the
output.
|
|
|
|
|
| |
Now that we have this api, lets use it for
our tests.
|
|
|
|
| |
A bit more natural than the environment variable.
|
|
|
|
|
|
|
| |
I added these for improved coverage, but they
get in the way, Should probably just move these
kind of checks to another place and leave this
test focused on dumps.
|
|
|
|
| |
We're going to steal one bit for private purposes.
|
|
|
|
|
|
|
| |
Some of these aren't reliable, and were only
added for test coverage.
Fixes: #576
|
|
|
|
|
| |
We need to apply trailing properly, by skipping
characters.
|
|
|
|
|
|
|
|
|
| |
Changes in width only need to break runs in
vertical context.
Update tests and add a new test.
Fixes: #503
|
|
|
|
|
|
| |
For tests where the wrong fonts break things,
check that we have Cantarell, and skip them
if not.
|
|
|
|
|
| |
We were rounding things differently, giving
us off-by-one errors on MacOs.
|
|
|
|
|
| |
The return value of setlocale is only good until
the next call. Also, consistently use en_US.UTF-8.
|
| |
|
|
|
|
|
|
|
| |
This is sometimes useful, even if we want to avoid
it in ci. So add an environment variable,
PANGO_TEST_SHOW_FONT to make it show the actual font
instead of 'OMITTED'.
|
| |
|
|
|
|
|
|
|
|
| |
Allow setting more layout properties in test-layout,
and check their values after setting them.
Also print out directions and cursor positions.
Update existing tests, and add more.
|
|
|
|
|
|
| |
When using test-layout FILE to generate
expected output, we don't want to prepend
an extraneous '#' to every line.
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|\
| |
| |
| |
| | |
misc fixes
See merge request GNOME/pango!242
|
| |
| |
| |
| | |
This was broken in f6032b754fd76ebbf0ae6.
|
| |
| |
| |
| | |
These were showing up as errors from lsan.
|
|/
|
|
| |
This broke when I recently reshuffled things.
|
|
|
|
|
|
|
| |
meson 0.55 considers tests using it to be FAIL.
I disagree, but lets quietly skip until 0.55.1
is available.
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
When dumping the diff between the computed and expected results, we need
to respect the TAP format and place "#" in front of each line.
|
|
|
|
|
| |
There's no point in running a tests if we know the locale isn't there.
The reason gets logged, so the developer can decide to install it.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This causes some changes in the output.
Update expected output.
|
|
|
|
|
| |
Share the attribute printing code between
all the tests, update expected output to match.
|
|
|
|
|
| |
We need to use a Unicode locale in order to test
Emoji and similar glyphs.
|
|
|
| |
This reverts commit 3e754defc364a89b2136894399b3463976840156
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Fixes bug 787867.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
These will be reused later.
|
|
|
|
|
| |
For some reason (that I haven't been able to track down), this
fails in the installed tests on build.gnome.org.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Run diff over the output to give a meaningful error if the
comparison fails.
|
|
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.
|