summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Update test resultsupdate-ci-imageMatthias Clasen2022-12-131-4/+4
| | | | Newer harfbuzz in F37 changes this.
* Merge branch 'fix-nofonts' into 'main'Matthias Clasen2022-11-181-0/+5
|\ | | | | | | | | | | | | tests/meson.build: install nofonts/fonts.conf as it is required by tests Closes #713 See merge request GNOME/pango!654
| * tests/meson.build: install nofonts/fonts.conf as it is required by testsAlexander Kanavin2022-11-081-0/+5
| | | | | | | | Fixes: https://gitlab.gnome.org/GNOME/pango/-/issues/713
* | Improve PangoAttrList serializationMatthias Clasen2022-11-183-6/+16
|/ | | | | | | Document the format, and improve the parser a bit, so we can use this format in GtkBuilder. Update affected tests.
* Update Unicode test cases to Unicode 15Peng Wu2022-10-113-15/+15
|
* Add a test for no-fontsno-font-fixesMatthias Clasen2022-09-263-0/+181
| | | | | | | Test that the layout is made up entirely of unknown glyphs if we have no font. The main point of this test is to ensure that we don't crash if analysis->font is NULL.
* ci: Fix the test buildMatthias Clasen2022-07-283-5/+7
|
* Disable testrandomMatthias Clasen2022-07-021-0/+2
| | | | | This test is known to fail, and mesons xfail support is unfortunately broken.
* Fix handling of ligature carets in some casesfix-lig-carets-sinhalaMatthias Clasen2022-06-241-0/+39
| | | | | | | | | | With a text of "ර් ", we were accidentally producing a cursor position outside of the [start_xpos, end_xpos] range, which clearly makes no sense. Test included. Fixes: #684
* Try again to fix cifix-ci-again2Matthias Clasen2022-06-101-4/+4
| | | | The rounding, it hurts...
* Update tests to pass on F36fix-ci-againMatthias Clasen2022-06-102-7/+7
| | | | Rounding differences are our downfall :(
* 1.50.71.50.7Matthias Clasen2022-04-142-16/+16
|
* Fix move pango_layout_move_cursor_visuallyfix-rtl-cursor-moveMatthias Clasen2022-03-311-1/+2
| | | | | | | | | | When moving the cursor off the paragraph end to the left in RTL text, we were moving to the previous line, and not to the next line, as expected. Test included. Fixes: #679
* AVoid a use-after-free in pango_attr_list_changeMatthias Clasen2022-03-181-0/+23
| | | | | | | | | This was showing up as crashes in pitivi and inkscape. The added test does not crash, but it does produce the wrong result without the fix. Fixes: #678
* Maintain order in pango_attr_list_changeMatthias Clasen2022-03-181-0/+44
| | | | | | | When PangoAttrList was changed to use an array, we lost the code that maintained non-decreasing order in pango_attr_list_change. Bring it back, and add a test for this.
* Add a fontset testMatthias Clasen2022-03-146-0/+286
| | | | | This tests that our test font configuration produces the expected font enumerations.
* Fix test font configurationMatthias Clasen2022-03-133-147/+147
| | | | | | | We were not actually preferring a monospace font for the monospace alias. Update affected tests.
* tests: Install DejaVuSans-Bold.ttf for use by installed-testsSimon McVittie2022-02-161-0/+1
| | | | | | f494181f added this but didn't install it. Related to #648. Signed-off-by: Simon McVittie <smcv@debian.org>
* Revert "Fix layout tests"minor-cleanupsMatthias Clasen2022-02-152-16/+16
| | | | This reverts commit 053c9ff8ab00d6d7d4b7cbe8aeeaca58c0982df1.
* Fix layout testsMatthias Clasen2022-02-092-16/+16
| | | | | There are unfortunately some rounding differences, which I believe are due to harfbuzz changes.
* Quiet down break testsMatthias Clasen2022-01-212-15/+15
| | | | | | | | | The output from the testboundaries tests just overwhelms the test reports and makes it hard to find the actual problems. Stop that. You can still get the noise, by passing --verbose to the tests.
* Fix allow_breaks handlingfix-allow-breaksMatthias Clasen2022-01-201-1/+1
| | | | | | | | | handling of segmentation attributes can introduce line breaks, after we removed them in allow_breaks handling. Change the order to handle allow_breaks last, so this doesn't happen. Update affected tests.
* Fix a g_ascii_formatd callfix-asciid-callMatthias Clasen2022-01-186-19/+19
| | | | | | | | | | | We were passing a format specifier that starts with ' ', which some implementations of that API don't like. This change removes an extraneous space from the output. Update affected tests. Fixes: #659
* Drop uses of pango_coverage_ref/unrefMatthias Clasen2022-01-101-3/+3
| | | | Just use g_object_ref/unref.
* Add a bold sans to the test font setupMatthias Clasen2022-01-102-0/+1
|
* Reinstate previous behavior or pango_attr_list_spliceattrlist-spliceMatthias Clasen2022-01-071-0/+18
| | | | | | | | | | If gap is zero, don't limit the inserted attributes; that does not make sense. Spell out the different use cases in the docs. Testcase included. Fixes: #653
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2022-01-022-0/+136
|\ | | | | | | | | Add a test for letterspacing See merge request GNOME/pango!570
| * Add a test for letterspacingMatthias Clasen2022-01-022-0/+136
| | | | | | | | | | This tests that we turn off ligatures when letterspacing is enabled.
* | Add pango_matrix_get_slant_ratioMatthias Clasen2022-01-021-0/+26
|/ | | | | Add API to extract the slant ratio from a PangoMatrix. Tests included.
* test-ellipsize: TweakMatthias Clasen2022-01-011-2/+2
| | | | | Best to compare precise sizes and take rounding out of the equation.
* Add fonts to installed testsMatthias Clasen2021-12-251-0/+14
| | | | Fixes: #648
* Make missing space smallersmaller-spaceMatthias Clasen2021-12-222-7/+7
| | | | | | | The Microsoft paper I was citing actually recommends 1/4 em for ASCII space. Make it so... Update affected tests.
* Use a better size for missing spaceMatthias Clasen2021-12-212-7/+7
| | | | | | | | | | Follow the Microsoft Typography recommendations from https://docs.microsoft.com/en-us/typography/develop/character-design-standards/whitespace and use half of an em for missing space. Update affected tests. Fixes: #647
* Add a test for the previous commitsmisc-cleanupsMatthias Clasen2021-12-182-0/+296
| | | | | This test verifies the fixes for the situation described in #646.
* serializer: Fix a typoMatthias Clasen2021-12-1835-35/+35
| | | | | | Oops, we were not serializing the height at all. Update all affected tests.
* cairo: Work harder to measure spacemore-space-tweaksMatthias Clasen2021-12-172-18/+12
| | | | | | | | | | | When coming up with a width for a missing space, we were just measuring the hex digits. But in subsetted fonts, such as the ones we use for ci, hex digits might well be missing. Take that into account and still provide some nonzero width for space. Update affected tests.
* shape: More tweaks to space handlingMatthias Clasen2021-12-172-18/+24
| | | | | | | | | | | | | | It is a difficult dance between HarfBuzz and pango which glyphs we let hb synthesize, and which ones we need to fake ourselves. HarfBuzz knows how to create other spaces from 0x20, so if the font is lacking spaces, we want to tell HarfBuzz that we don't have that glyph *except* for 0x20 where we need to fake one, and provide HarfBuzz with a suitable width. Update affected tests.
* Revert "Fix advance widths with transforms"fix-vertical-regressionMatthias Clasen2021-12-1716-41/+302
| | | | | | | | | This reverts commit ccb651dd2a876a4f4a4cb9351f05332173e709ba. This broke vertical text rendering, see https://gitlab.com/inkscape/inkscape/-/issues/2950. Update affected tests and add a vertical test.
* Fix handling of space-less fontsfix-spaceless-fontsMatthias Clasen2021-12-166-13/+151
| | | | | | | | | | | HarfBuzz knows how to synthesize spaces, we just need to tickle it in the right way. Test included. Update affected tests. Fixes: #641
* Add a test for 0x6ddarabic-formatMatthias Clasen2021-12-164-0/+92
| | | | This tests the fix in the previous commit.
* tests: Cover new tab alignmentsMatthias Clasen2021-12-101-7/+15
|
* layout: Handle a corner caseMatthias Clasen2021-12-092-0/+184
| | | | | | | | | We can't break in a tab run. This fixes an assertion found by afl. Testcase included. Fixes: #638
* Fix line width computationMatthias Clasen2021-12-062-0/+364
| | | | | | | | | | We an only use the line_width - remaining_width shortcut if we are actually maintaining remaining_width, i.e. not if we don't wrap lines. Testcase included. Fixes: #635
* Add a monospace font for ciMatthias Clasen2021-12-064-16/+22
| | | | Update affected test outputs.
* Fix a crash in tab handlingtab-crash-fixMatthias Clasen2021-12-052-0/+1430
| | | | | | | | | | When we uninsert the current tab run, we need to reset our tab state to prevent last_tab->glyphs to become a dangling pointer. Test included. Fixes: #634
* 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.
* Update tests for small changes in outputMatthias Clasen2021-12-0229-1225/+1204
|
* testserialize: Fix the testsMatthias Clasen2021-12-021-13/+23
|
* layout: Small optimizationMatthias Clasen2021-12-022-14/+14
| | | | | Don't calculate line width the hard way when we can do it much easier.
* Add a test with tab alignmentstab-alignMatthias Clasen2021-11-292-0/+1837
|