Files
harfbuzz/test/vector/meson.build
Behdad Esfahbod d45fa42c5a [vector] Restore reset defaults and clear PDF draw resources (#6355)
Vector reset omitted draw colors, paint background, SVG id prefixes,
and custom palette overrides. Restore these defaults while preserving
configuration across clear.

The PDF draw context also kept its opacity resource dictionary and
counter after clear, including automatic clearing after render.
Clear both with the accumulated output so later documents do not carry
resources from earlier renders.

Add regressions for SVG/PDF reset, configuration preservation, custom
palette overrides, and fresh-context PDF equivalence after explicit
clear, reset, and repeated rendering. All three regression groups fail
against the original implementation.

Tested with meson test -C build: 288 passed, 1 skipped, 0 failed.
The vector suite and the issue reproducer pass. The regression also
compiles and runs as C99 with -Wall -Wextra -Werror.

Fixes: https://github.com/harfbuzz/harfbuzz/issues/6342
Assisted-by: OpenAI Codex
2026-10-10 16:59:13 -06:00

42 lines
848 B
Meson

if get_option('vector').disabled()
subdir_done()
endif
run_test = find_program('run-tests.py')
test_vector_budget = executable('test-vector-budget', 'test-vector-budget.c',
dependencies: [libharfbuzz_vector_dep],
)
test('budget', test_vector_budget,
args: [meson.project_source_root() / 'test' / 'api' / 'fonts' / 'glyphs.ttf'],
suite: 'vector',
)
test_vector_reset = executable('test-vector-reset', 'test-vector-reset.c',
dependencies: [libharfbuzz_vector_dep],
)
test('reset', test_vector_reset,
suite: 'vector',
)
tests = [
'basic',
'varc',
]
foreach t : tests
fname = '@0@.tests'.format(t)
test(t, run_test,
args: [
hb_vector,
meson.current_source_dir() / 'data' / 'tests' / fname,
],
workdir: meson.current_build_dir() / '..' / '..',
protocol: 'tap',
suite: 'vector',
)
endforeach