summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2017-01-19 16:55:04 -0800
committerBehdad Esfahbod <behdad@behdad.org>2017-01-19 16:55:04 -0800
commita8a5e81a52f56f5f8bf975dc4d9f79bede5d895b (patch)
tree2157da8a9bfc857512703be527fd8a61be648b21 /test
parent331d07bd40a3d9ff30db5cdf85fdc4f10f0fcb99 (diff)
[test-ot-math] Add test with nil face/font
Diffstat (limited to 'test')
-rw-r--r--test/api/test-ot-math.c8
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();
}