| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Add attributes that let us override word and
sentence boundaries (and, indirectly, line breaks).
Tests included.
|
| |
|
| |
|
|
|
|
|
| |
Handle all attribute types when testing copying,
and add tests for the binding helpers.
|
|
|
|
| |
Fix a comment
|
|
|
|
|
|
| |
Add a PangoTextTransform enum, a PangoAttribute
to set it on runs of text, and support for parsing
it out of markup.
|
|
|
|
|
|
| |
Add more cases to cover move of the branches
in this complicated function. Among other things,
this tests the fix in the previous commit.
|
|
|
|
|
|
|
|
|
|
| |
Make attribute_from_string() parse enum attribute values
in the same way as PangoMarkup, and use it in the
attribute tests.
Still to do: Do the same for flags. The flags parsing
function isn't exported, so this needs our tests to be
statically linked.
|
|
|
|
|
| |
This recreates the scenario described in #564.
It works fine.
|
|
|
|
| |
These improve test coverage for some corner 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This broke when PangoAttrIterator was changed to
use an array for the stack of current attributes, in
dec6c0868ef2c36. We were not always walking the array
in the right order. The first attribute to check is
at the *end* of the array.
This showed up as misrendering in epsilon_0 example
in gtk3-demo's text view markup demo.
Test included.
|
|
|
|
|
|
|
|
| |
There were a few cases left where empty attribute
lists could lead to crashes. This was observed causing
crashes in gnumeric.
Testcases included.
|
|
|
|
|
| |
This captures the loss of color in the links demo in
gtk4-demo with pango 1.45.2
|
|
|
|
| |
Check with NULL and empty lists.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Not needed afterwards.
|
|
|
|
| |
Test that new underline values work.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Share the attribute printing code between
all the tests, update expected output to match.
|
|
|
|
|
|
|
| |
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
|
|
These tests exercise PangoAttribute, PangoAttrList and
PangoAttrIterator apis.
|