mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
Folded into the existing test-paint binary. Two tests, both font-independent (registered ahead of the glyph-based flavor setup so they run even on builds without the test COLRv1 font): * test_push_clip_path_nil_returns_null: an unset paint-funcs table returns NULL from push_clip_path_start and clears the out-param draw_data, and push_clip_path_end is safe to call on the nil stub. * test_push_clip_path_round_trip: registered start/end fire in order, the returned draw-funcs + draw-data round-trip through the public entry points, and every hb_draw_*() call reaches the sink accumulator. Asserts the count includes hb_draw_close_path's synthetic back-to-start line_to so the contract is documented by the test. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>