diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2017-01-19 16:55:04 -0800 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2017-01-19 16:55:04 -0800 |
commit | a8a5e81a52f56f5f8bf975dc4d9f79bede5d895b (patch) | |
tree | 2157da8a9bfc857512703be527fd8a61be648b21 /test | |
parent | 331d07bd40a3d9ff30db5cdf85fdc4f10f0fcb99 (diff) |
[test-ot-math] Add test with nil face/font
Diffstat (limited to 'test')
-rw-r--r-- | test/api/test-ot-math.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/api/test-ot-math.c b/test/api/test-ot-math.c index b9fcb656..0ca5566d 100644 --- a/test/api/test-ot-math.c +++ b/test/api/test-ot-math.c @@ -97,6 +97,14 @@ test_has_data (void) g_assert(hb_ot_math_has_data (hb_face)); // MATH table available closeFont(); + hb_face = hb_face_get_empty (); + hb_font = hb_font_create (hb_face); + g_assert(!hb_ot_math_has_data (hb_face)); // MATH table not available + + hb_font = hb_font_get_empty (); + hb_face = hb_font_get_face (hb_font); + g_assert(!hb_ot_math_has_data (hb_face)); // MATH table not available + cleanupFreeType(); } |