| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This recreates the scenario described in #564.
It works fine.
|
|
|
|
|
|
|
|
| |
Correctly classify tag characters as Grapheme_Extend,
so that we don't end up putting grapheme boundaries
in the middle of tag sequences.
Includes a test.
|
| |
|
|
|
|
|
|
|
| |
Add grapheme boundaries to the output of test-break,
so we can check those easily, too.
Update expected test output for this.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Also add some tests for bidi embedding levels.
|
| |
|
| |
|
|
|
|
|
| |
Avoid g_test_init if we are just generating expected output,
for easier updating.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Spot-check a copied layout in test-break.
|
| |
|
| |
|
|
|
|
|
| |
We need space for G_MAXUINT and 4294967285 (in testattributes.c). On
i686, this requires long long, as long is only 32 bits wide.
|
|
|
|
|
|
|
| |
It turns out that we can still see non-scalable fonts
which report a list of sizes. Take that into account.
Fixes: #570
|
|
|
|
| |
Now that we aren't using the M_ constants, drop math.h.
|
|
|
|
|
|
|
|
|
|
| |
Math implementations are platform dependent, and for
example msvc requires a define before enabling the
constants [1]
Use G_SQRT2 implementation which is independent instead.
[1] https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=msvc-160
|
|
|
|
|
| |
The api is deprecated, but it is very ugly to randomly
miss a few values here. Just add them.
|
| |
|
|
|
|
| |
Exercise the list model apis, for coverage.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Check the previous change.
|
|
|
|
| |
These improve converage for misc PangoContext apis.
|
|
|
|
| |
These improve test coverage for some corner cases.
|
| |
|
|
|
|
| |
Cover many more error cases.
|
|
|
|
|
|
|
| |
Add a way to deserialize a PangoAttrList from a string,
for less cumbersome tests.
And use it in testattributes.
|
|
|
|
|
| |
This tests that we handle more cases of overlapping
attributes properly.
|
|
|
|
| |
Test the fix in the previous commit.
|
|
|
|
| |
This captures bug fixed in the previous commit.
|
|
|
|
|
|
|
|
|
| |
The commit message for d476d2a944500f8553 said
"word boundaries", but the code checked for line
breaks. That was wrong, since it also made hyphens
disappear at SHY, where we very much want them.
Update affected tests.
|
|
|
|
|
|
|
| |
test-break has a helpful text that explains
the maining of the output. Unfortunately,
the --help option is taken by g_test_init(),
so make this available with --legend.
|
|
|
|
|
|
|
| |
We were just never setting the height. Ouch!
Test included.
Fixes: #487
|
|
|
|
|
|
|
|
|
|
| |
We only want to insert hyphens when we are breaking
inside a word.
Update affected tests (hyphen-or-not shows up in the
analysis flags in the output of test-layout).
Fixes: #558
|
|
|
|
|
|
| |
When using test-layout FILE to generate
expected output, we don't want to prepend
an extraneous '#' to every line.
|
|\
| |
| |
| |
| | |
Markup parse fixes
See merge request GNOME/pango!292
|
| |
| |
| |
| |
| | |
Add tests that test some of the corner cases handled
in the previous commit.
|
| |
| |
| |
| |
| | |
Don't print extraneous output when we are generating
an .expected file.
|
| |
| |
| |
| |
| |
| | |
And print out the accel_char if we get one back.
This will let us add tests for accel functionality.
|
| |
| |
| |
| |
| | |
This is in preparation for adding some tests that
will check accel handling.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the 'other' list contains attributes that are
unlimited or exceed the range given to pango_attr_list_splice,
those attributes were 'leaking' out of the range. The visible
effect of this is that the underline of preedit text extends
outside the preedit in some GTK entries.
Fix this by clipping the inserted attributes to the range.
The documentation is not very explicit about this, but I believe
this is the expected behavior.
Tests included.
|
|
|
|
|
| |
Remove the dashes that cause the runs to break, and seem
to be causing issues on both Debian and newer Fedora.
|
|
|
|
|
|
|
|
|
| |
Test that round-tripping through pango_font_describe
works. This is currently broken for scalable bitmap
fonts, such as color Emoji fonts.
We skip the test on OS X where we are most likely
missing the fonts.
|
|
|
|
| |
pango_cairo_font_map_get_default is transfer none.
|