Add a test for hb_ot_color_glyph_has_paint

This commit is contained in:
Matthias Clasen 2022-12-26 08:31:22 -05:00 committed by Behdad Esfahbod
parent e7b0947afd
commit 00e93102a6
1 changed files with 9 additions and 0 deletions

View File

@ -394,6 +394,14 @@ test_hb_ot_color_has_data (void)
g_assert (hb_ot_color_has_paint (colrv1) == TRUE);
}
static void
test_hb_ot_color_glyph_has_paint (void)
{
g_assert (hb_ot_color_has_paint (colrv1));
g_assert (hb_ot_color_glyph_has_paint (colrv1, 10));
g_assert (!hb_ot_color_glyph_has_paint (colrv1, 20));
}
static void
test_hb_ot_color_svg (void)
{
@ -495,6 +503,7 @@ main (int argc, char **argv)
hb_test_add (test_hb_ot_color_has_data);
hb_test_add (test_hb_ot_color_png);
hb_test_add (test_hb_ot_color_svg);
hb_test_add (test_hb_ot_color_glyph_has_paint);
status = hb_test_run();
hb_face_destroy (cpal_v0);