| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Handle all attribute types when testing copying,
and add tests for the binding helpers.
|
| |
|
|
|
|
| |
This includes stdlib.h for strtol, strtoll and strtod functions declaration
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
We need space for G_MAXUINT and 4294967285 (in testattributes.c). On
i686, this requires long long, as long is only 32 bits wide.
|
|
|
|
| |
Cover many more error cases.
|
|
|
|
|
|
|
| |
Add a way to deserialize a PangoAttrList from a string,
for less cumbersome tests.
And use it in testattributes.
|
|
|
|
|
|
|
| |
When producing output, use the C locale for formatting
floating point numbers, to avoid locale dependent output.
Fixes: #474
|
|
|
|
| |
These were pointed out by asan.
|
|
|
|
|
| |
pango_layout_get_attributes() is explicitly nullable but not every
caller handles that case.
|
| |
|
|
|
|
|
|
|
|
|
| |
Add a text attribute that allows to suppress
insertion of hyphens at intra-word line breaks.
This is useful for non-paragraph-like contexts,
where line breaks are needed, but hyphens are not
expected.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Share the attribute printing code between
all the tests, update expected output to match.
|
|
|
|
|
|
| |
Typically the tests don't care about the case of the characters, but
g_printf("%s", 0x0) returns "(null)" if glibc is being used and "(NULL)" if
gnulib's drop-in replacement are used. Fixes #356
|
|
|
|
|
| |
The copy of print_attribute() in markup-parse.c handles more attributes, so add
those here too.
|
|
|
|
|
|
|
| |
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
|
| |
|
|
These will be reused later.
|