mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
[test-ot-math] Add test with nil face/font
This commit is contained in:
1 parent
331d07bd40
commit
a8a5e81a52
1 file changed
+8
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user