projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
331d07b
)
[test-ot-math] Add test with nil face/font
author
Behdad Esfahbod
<behdad@behdad.org>
Fri, 20 Jan 2017 00:55:04 +0000
(16:55 -0800)
committer
Behdad Esfahbod
<behdad@behdad.org>
Fri, 20 Jan 2017 00:55:04 +0000
(16:55 -0800)
test/api/test-ot-math.c
patch
|
blob
|
history
diff --git
a/test/api/test-ot-math.c
b/test/api/test-ot-math.c
index
b9fcb65
..
0ca5566
100644
(file)
--- 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();
}