summaryrefslogtreecommitdiff
path: root/tests/testserialize.c
Commit message (Collapse)AuthorAgeFilesLines
* Add pango_font_deserializeMatthias Clasen2021-12-021-1/+14
| | | | | This will make the font serialization useful in GTK, where we serialize fonts in node files.
* testserialize: Fix the testsMatthias Clasen2021-12-021-13/+23
|
* tabs: Tweak string formatMatthias Clasen2021-11-291-6/+6
| | | | Use newlines to separate tabs, rather than spaces.
* tabs: Add a decimal pointMatthias Clasen2021-11-291-3/+8
| | | | | | | This is useful for PANGO_TAB_DECIMAL. Implement this in PangoLayout, in the serializer, and update tests.
* serializer: Support tab alignmentsMatthias Clasen2021-11-291-3/+14
| | | | | | | | | Serialize tab alignment in addition to tab position. We still accept the old format and default alignment to left. Update testserialize and layout tests for this.
* Add a test for pango_font_serializefont-serialize-testMatthias Clasen2021-11-271-0/+78
| | | | | Now that we have fonts in git, we can reliably test this.
* Add a newline to serialization resultsMatthias Clasen2021-11-251-12/+11
| | | | | | | | Otherwise editing the output in an editor is likely to make the data not match anymore, since most editors will add a final newline. Update all tests
* More context serialization workMatthias Clasen2021-11-241-2/+2
|
* Allow serializing context informationMatthias Clasen2021-11-241-0/+45
| | | | | | | | | Optionally include context information in the serialization and restore it. This will be useful for transporting for giving tests complete data that affects their output. Some tests included.
* Add flags to serialize and deserializeMatthias Clasen2021-11-241-5/+5
| | | | | | | 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.
* Rename the serialize errorsMatthias Clasen2021-11-241-5/+5
| | | | | They are produced by deserialization, so call them that.
* Make test-layout use layout serializationMatthias Clasen2021-11-181-32/+55
| | | | | Now that we have this api, lets use it for our tests.
* Add layout serialization apiMatthias Clasen2021-11-181-0/+166
| | | | | | | | Add api to serialize PangoLayout, for the benefit of testing and debugging. Currently, this uses json, but that is an implementation detail. Some tests included.
* Add pango_tab_array_to/from_stringserialize-attrs-and-tabsMatthias Clasen2021-11-171-0/+48
|
* Add pango_attr_list_to/from_stringMatthias Clasen2021-11-171-0/+86
Add an api to serialize PangoAttrList. This will be useful in testing and debugging.